cURL / Mailing Lists / curl-users / Single Mail

curl-users

RE: curl - ftp download and upload

From: Craig Liddle <cliddl_at_hotmail.com>
Date: Wed, 6 May 2009 16:20:52 +0000

Hi Daniel

 

Thanks for the prompt response

 

It would have to be a 'c' compiler ? i couldnt acheive this in a ksh?

 

Cheers

 

Craig

 
> Date: Wed, 6 May 2009 18:08:49 +0200
> From: daniel_at_haxx.se
> To: curl-users_at_cool.haxx.se
> Subject: Re: curl - ftp download and upload
>
> 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.html

_________________________________________________________________
View your Twitter and Flickr updates from one place – Learn more!
http://clk.atdmt.com/UKM/go/137984870/direct/01/

-------------------------------------------------------------------
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-05-06