curl-users
automated ftp
Date: Wed, 13 Oct 2010 13:00:47 +0200
Hello,
I started using curl because i need to switch all my ftp transfers to ftp/ssl.
Everything works fine (ssl and auth with certificates), but there is a
problem with
automated jobs using curl!
I run ftp in many shell scripts and it looks something like this:
ftp username_at_server.com < ftp.in
where
ftp.in looks like this:
cd /input
lcd /input
put input.file1
get output.file2
ls
cd /output
lcd /output
get result.file
mkdir /new
put result.file2
ls
quit
Is there a way to call curl in the same manner?
Something like this:
curl --cert /certs/username.pem --cacert /certs/server.pem --ssl-reqd
-u username: -inputfile ftp.in ftp://server.com
or
curl --cert /certs/username.pem --cacert /certs/server.pem --ssl-reqd
-u username: ftp://server.com < ftp.in
All I could find is:
curl --cert /certs/username.pem --cacert /certs/server.pem --ssl-reqd
-u username: -T /input/input.file1 ftp://server.com//input/
when I want to upload
and
curl --cert /certs/username.pem --cacert /certs/server.pem --ssl-reqd
-u username: -o /output/result.file
ftp://server.com//output/result.file
when I want to download,
but that would mean i have to significantly alter my scripts and there
are many of them!!
Tnx,
Goran
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-users
FAQ: http://curl.haxx.se/docs/faq.html
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2010-10-13