How to create automatic ftp scripts in bash
You can do this in any operating system that allows you to do bash shell scripting, but if you know a little about shell scripting, then all you need to know is that you can do:
ftp -i << **
After you put this in the script, this will allow you to login and password to whatever is set in your .netrc. If you don't have one, then you should set it before starting off a script like this.
All the commands after this line will be your usual ftp commands. When you're done, then do a:
bye
**
Everything outside of this line will be back on your bash scripting syntax.
0 TrackBacks
Listed below are links to blogs that reference this entry: How to create automatic ftp scripts in bash.
TrackBack URL for this entry: http://life.firelace.com/mt-cgi/mt-tb.fcgi/7581


Leave a comment