Check into a program called 'expect'. Basicially it is a script language that allows you to automate tasks which require different responses based upon a programs output. I use it for ftp uploads/downloads because it can wait for specific strings and then send a response back. Seems with ftp you can't redirect input, because ftp seems to lose the buffered input (something like that). You can setup timeout periods and responses based upon various outputs from the program your running. You can react differently based upon successfull or unsuccessful errors.
Once you have the script running you can trigger it with cron or almost anything.
You may have it already, if not let me know I and see if I can find where you can download it from.
Here is a simple ksh one. Just make the address a variable,and loop through all your servers. Mind you it is not very secure. The <<! says input all the lines till you hit !, into the ftp.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.