cURL / Mailing Lists / curl-users / Single Mail

curl-users

RE: Redirecting cURL upload output

From: Young,Jim <Jim.Young_at_cerner.com>
Date: Tue, 18 Aug 2009 13:54:07 -0500

>I'm trying to redirect output from a cURL upload but I don't seem to be having any luck
>
>I've used:
>curl -u username:password -T '/file.pdf' ftp://ftp.site.ca -o '/logs/filelog.txt' --create-dirs
>and it'll create the directory, but it won't actually create a filelog.txt file.
>
>Similarly, if I use an output redirect:
>curl -u username:password -T '/file.pdf' ftp://ftp.site.ca > /logs/filelog.txt
>I end up with a zero k file.
>
>Am I doing something wrong here? In all cases the file is being transferred correctly; I am just hoping for a way to get some feedback about the output.

Does the following work?

curl -u username:password -T '/file.pdf' --create-dirs ftp://ftp.site.ca//logs/filelog.txt'

 

----------------------------------------------------------------------
CONFIDENTIALITY NOTICE This message and any included attachments are from Cerner Corporation and are intended only for the addressee. The information contained in this message is confidential and may constitute inside or non-public information under international, federal, or state securities laws. Unauthorized forwarding, printing, copying, distribution, or use of such information is strictly prohibited and may be unlawful. If you are not the addressee, please promptly delete this message and notify the sender of the delivery error by e-mail or you may call Cerner's corporate offices in Kansas City, Missouri, U.S.A at (+1) (816)221-1024.

-------------------------------------------------------------------
List admin: http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-users
FAQ: http://curl.haxx.se/docs/faq.html
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2009-08-18