automated ftp

where can I find a script that will allow me to automate, on
a configurable schedule, ftp transfers?  I am not good at
programming so I need a pre-existing script.
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

What is it you really want?  :)  Do you want to download a certain file every day, or do you want to say "this is the file I want, now download it at 11:14pm next Tuesday"?
This script will do what you want:



while 1
ftp -in systemname << eof_ftp
    us $u $p
    cd /foo/bar/
    get filename

Change the following:
username and password to the username and password you will be logging in with on the ftp server.

systemname to the name of the ftp server.

cd /foo/bar to the directory where the file you want is located.

filename to the name of the file you want to transfer.

To automate this script, create a crontab entry and set it for whatever time you want. One last thing, make sure this file is executable and only readable by you with a 'chmod 700'. This is important because the username and password have to be stored in the script for it to work. If you have problems, please leave a comment. Thanks.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
I believe you'd like something like "GetRight" for Linux, right? Well... Your solution is the "wget" program. It comes with Slackware, but I don't know if you were lucky enough to get Slackware as your distribution. You could download it, anyway.

 With wget, you can write a text file containing the URLs of the files you want, then configure cron to run it at a given time. wget wil then read your list and download the files, one by one. It is even better if you get demand dialing set up, so the connection will be automatically done.

 I'll give more instructions if this sounded interesting...
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.