curl-users
Re: curl - ftp download and upload
Date: Wed, 6 May 2009 18:08:49 +0200 (CEST)
On Wed, 6 May 2009, Craig Liddle wrote:
> put ${log_dir}/selection_file /dev/tfs/FTFRptReq
> get /dev/tfs/FTFRptA ${log_dir}/ftfreport
> rename /dev/tfs/FTFRptReq /dev/tfs/END
> curl --ftp-method nocwd --user ftpuser -T /tmp/selfile
> ftp://server//dev/tfs/BiiDelExpReq ftp://server//dev/tfs/BiiDelExp -o
> /tmp/file_from_server -Q "-RNFR /dev/tfs/BiiDelExpReq" -Q "-RNTO
> /dev/tfs/END"
> The put works, but the download is printed to stdout (it ignores the -o).
I believe that is because the -o is used for the first URL (as some protocols
both send and download with a single URL), how about if you use a second -o?
> Can curl offer me what i want without having to develope a program using
> libcurl?
Developing such a program simply means using your favourite script language
and its libcurl binding. It shouldn't be any major hurdle.
-- / daniel.haxx.se ------------------------------------------------------------------- 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.htmlReceived on 2009-05-06