Upload FTP files to Q (KDB)

Does anyone know if there is a way to download files from an ftp server directly from Q (kdb)? I know that you can use http, but have not seen any examples of using ftp. There seems to be only a way to write a wrapper around something like curl, etc., But maybe this is already done? Any thoughts?

+4
source share
3 answers

use a systemcall curlwithout assigning a file - its default assignment is stdout, so the contents of the file will be returned in q as a return valuesystem

data:system"curl ftp://wherever/whatever"

+3
source

Why not:

  • Write a script to extract the file, then run q processing.
  • linux/dos, , kdb key, , .
+4

Linux curl , q. :

system "curl --proxy my_proxy_details ftp://ftp.microsoft.com/developr/visual_c/README.TXT -o README.txt"

- > -o - .

curl ftp Q.

: http://www.cyberciti.biz/faq/curl-download-file-example-under-linux-unix/

0

Source: https://habr.com/ru/post/1538724/


All Articles