How do I ftp a file from a shell script?
A quick little shell script to FTP a file. I built it to do automatic back-ups with cron.
I'm posting here because it took me a while to figure it out. I hope it's useful for others.
The Code
Please leave feedback about your experience here, thank you.
Update: A reader posted on my blog that he had to change the switch on the ftp command from u to i for his situation.
For those interested, more information on the ftp command can be found on the man page. Most *nix distros should provide this information with man ftp or info ftp.
