Unix shell script to automate FTP process
I found the following script below from FTP Planet to automate FTP process. It seems to work well but do not recommend leaving your username and password in any script for a extended period of time:
ftp -v -n hostname << EOF
user usuario password
bin
put filename
bye
EOF
ftp -v -n hostname << EOF
user usuario password
bin
put filename
bye
EOF
Labels: unix
1 Comments:
I think we should ban users from using FTp. It uses plain text password. And the idea of putting password in a shell script is great too! Use SSH instead or SCP.
Post a Comment
Subscribe to Post Comments [Atom]
<< Home