FTP - Watch for new files

Technical support and scripting issues

Moderators: JRL, Dorian (MJT support)

Post Reply
ck369
Newbie
Posts: 3
Joined: Tue Oct 29, 2013 3:00 pm

FTP - Watch for new files

Post by ck369 » Tue Oct 29, 2013 3:13 pm

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!

User avatar
Marcus Tettmar
Site Admin
Posts: 7395
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Post by Marcus Tettmar » Tue Oct 29, 2013 3:35 pm

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?

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts