|Daemon to monitor directory for changes and run file processing program|
|Date Updated - 07/22/2007|
User is an IT professional in a production environment. He needs to monitor a folder for incoming files. Whenever a file appears in this folder, he needs to launch a script that will process the files data.
This solution is available with patch update 5.3_1 or later (release date = 09/15/02)
1) Create the Command / WinCommand task to launch your file processing script (TaskTitle = fileCrunch)
2) Create a Dir Change task as follows:
Dir to monitor = c:\production\incoming
Task to Run = fileCrunch
Polling interval = 15 seconds
Maximum time allowed for task = 1440 (1440 minutes = 1 day)
Select the Daemon checkbox
3) Schedule this task to run every day (i.e. 1440 minutes) i.e. this task will run continuously 24 hours a day. If a new file comes into the folder the file processing program is launched via the Command / WinCommand task.