[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Hands off ftp
> I want ot do ftp operations with a script, maybe kicking off
> that script from a cron job.
For ftp in a script, I use the "ncftp" client instead of "ftp".
It works great, and comes standard with Redhat. i.e.
ncftp -a ftp.somesite.com:/pub/somewhere/file.txt
Will download "/pub/somewhere/file.txt" from "ftp.somesite.com".
"-a" will automatically do an anonymous login.
Other useful options are "-r -d 5" to keep trying a busy/full
ftp server every 5 seconds until it works. You can also do
recursive downloads of entire directory structures.
A better ftp client, IMO.
--------------------------------------------
Bruce Smith bruce@armintl.com
System Administrator / Network Administrator
Armstrong International, Inc.
Three Rivers, Michigan 49093 USA
http://www.armstrong-intl.com/
--------------------------------------------