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:

Everything outside of this line will be back on your bash scripting syntax.