Here is another bash script to upload to FTP. This time it's a bit different than the previous one I posted here. This version uploads all the contents of a directory to FTP server. No fancy GUI this time. No input prompts. Just a wee dependency. Don't worry the script will cry if the dependency is not met with
Before using the script you will have to add values to the following variables,
Make sure HOST_1 doesn't look like this,
The backbone behind this script doesn't like the usage of ftp://ftp
Mind the trailing /* DON'T REMOVE /*
MAKE SURE TO REMOVE /* WE DON'T NEED /* HERE. THE PATH SHOULD BE THE SAME MINUS TRAILING /*
Here add the FTP directory to which you wish to upload files. i.e. /incoming /ISO /upload etc.. etc..
Save the file somewhere in your $PATH. chmod 755 it. Run it. By default it will remain silent. Won't show any progress-transfer information. On completion, successful or erroneous, it will show detailed log file(s).