Thursday, March 30, 2006

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

Labels:

1 Comments:

Blogger Doug said...

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.

1:25 PM  

Post a Comment

Subscribe to Post Comments [Atom]

<< Home