What is the best way to watch for new files to appear on an FTP site and then execute a script. I already have the file(s) downloading form the FTP but I have to launch the script manually. Would like to automate this.
Thank you in advance!
FTP - Watch for new files
Moderators: JRL, Dorian (MJT support)
- Marcus Tettmar
- Site Admin
- Posts: 7395
- Joined: Thu Sep 19, 2002 3:00 pm
- Location: Dorset, UK
- Contact:
You could have a scrip call FTPGetDirList in a loop. Parse the list to see if there are any new files. Keep looping.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?