Unattended FTP

To script an FTP session, use a "here" document with the ftp command's -vin flags.

Example:

ftp -vin << EOJ
open ftp_server
user username password
ftp_commands
bye
EOJ

Back to brandonhutchinson.com.

Last modified: 01/16/2003