[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[ale] How to Automate FTP ????



Below is the contents of an automatic ftp script I found on the Internet. 
 I've been using it for several months and it works great.  Make the script 
executable and run it from cron.  Obviously, you'll need to change "get" 
for "put".  It does whatever ftp commands you give it until it reaches the 
EOF.

=============================
#!/bin/sh
ftp -n yourNTserver <<EOF
user anonymous password yourname at domain.com
binary
hash
prompt
get firstfile.xls
get secondfile.xls
get thirdfile.xls
EOF