Has anyone tried to setup a "Monitor" on multiple file. I want to set up a file create monitor on 10 files in a linux directory. Once all 11 files (*.txt) are found I want to call my project.
This works perfectly fine with one file to monitor, but somehow I can't get it to work with more than one file.
Thanks in advance for your help :)
Since Montiors will check the files every 15 seconds, what was new 15 seconds ago is no longer considered new (created) now.
There are two ways you can address your need:
Option 1 - Using a Monitor
Setup a Files Created Monitor, setup a project that will take the files from the monitor.fileList and write the details out to a CSV file or similar. Then when your CSV file reaches over 10 records, you can process those files and clear out then clear out the CSV file. Depending on what all you are doing with the files, it is possible you could run into an issue if processing goes beyond 15 seconds. There are some additional steps that could be taken to help with this if needed.
Option 2 - Using a Scheduler
Setup a scheduler to run as frequently as you need. Then in your project, have it get a list of files in the desired directory and check the count of files present. When it reaches over 10 files, then process them. Once you process a file, you will want to make sure you archive (move) it to a different directory so that it doesn't get processed twice.
Either option should suit your needs just fine. Depending on the extent of your processing of the files, one option may be a better choice over the other. Feel free to provide more detail if you'd like guidance in making your selection.
Thanks - Jon