HOW to create a bash script to download FTP?
Hi friends ...
I will make a bash script to donwload the file *. zipped through FTP. FTP Serever: http://ftp2.pegadaian.co.id/kanwil username: "username" password: "password" in the FTP directory there are several folders according to the day, such as Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, and Sunday. how to create a bash script to download the *. zipped by the name of the day is in the FTP directory? my email : sudiyanto.ujank@gmail.com |
You don't really need a script, or at least not a long one. The following would work in bash:
Code:
wget --user=yourusername --password=yourpassword http://ftp2.pegadaian.co.id/kanwil/$(date +"%A")/*.zip |
All times are GMT -5. The time now is 05:47 PM. |