Basically, I'm trying to do this:
some_other_program | curl ftp://username:password@192.168.1.10/file.txt
As a test case to see if I can get it working, I'm trying it with cat
like so:
cat test.txt | curl -d @- ftp://admin:PASS@192.168.1.10/file.txt
Notice, I tried the -d @-
thing, but it doesn't work. How do I do this?
This question is similar, but that one is about HTTP, my question is about FTP.
-T -
for ftp instead of-d @-
which is just for http. – meuh Jan 30 '17 at 17:24