Thread shell-script -> ftp -> automatisch einloggen (9 answers)
Opened by daniel at 2003-12-09 22:14

schmeckzilla
 2004-01-27 23:26
#96410 #96410
User since
2003-09-09
23 Artikel
BenutzerIn
[default_avatar]
Ist vielleicht etwas spät die Antwort, aber bis vor kurzem wußte ich es aber auch nicht. ;-)

Dafür kannst Du auch ein Konkurrenzprodukt von wget nehmen.

curl (http://curl.haxx.se/)

BTW ncftpput und ncftpbatch sollten das auch können.

Quote
FTP

Upload all data on stdin to a specified ftp site:

curl -T - ftp://ftp.upload.com/myfile

Upload data from a specified file, login with user and password:

curl -T uploadfile -u user:passwd ftp://ftp.upload.com/myfile

Upload a local file to the remote site, and use the local file name remote too:

curl -T uploadfile -u user:passwd ftp://ftp.upload.com/

Upload a local file to get appended to the remote file using ftp:

curl -T localfile -a ftp://ftp.upload.com/remotefile

Curl also supports ftp upload through a proxy, but only if the proxy is configured to allow that kind of tunneling. If it does, you can run curl in a fashion similar to:

curl --proxytunnel -x proxy:port -T localfile ftp ftp.upload.com
use strict; use warnings;
perl -e 'eval reverse q| )51,1-,4,9,1,1-,7,22,5,8,8,3-,86-,71,51,1,51,86-,21,1,41,8,86-,24-,55-,95-(})001+_$(rhc{pam esrever tnirp|'

View full thread shell-script -> ftp -> automatisch einloggen