If you´re using ftp to download files from a contractor such as a logistics provider you can automate it using cron and the .netrc file.

1. Create a .netrc file in the home directory of the user who will be executing the script.

2. Open the .netrc file, “paste” the following text into it and change it

machine FQDN_OR_IP_ADDRESS
login USERNAME
password PASSWORD

macdef MACRONAME
prompt off
bin
cd PATH
lcd LOCALPATH
mget *

3. Enter crontab -e and hit enter

4. “Paste” the following text into it and change it

MM HH  * * * echo "$ MACRONAME" | ftp FQDN_OR_IP_ADDRESS

After applying this your files are being downloaded to the location and at the time you´ve defined.