1 of 1 people found this helpful
What you need is a file watcher job to watch for your csv files. When a file is detected, you will get an output that looks like this:
1207 01:18:51 : File transfer was completed. The size of file '/tmp/file.csv' is 12 bytes. id=1. Modified 06/12/2019 07:21
You can make use of "Capture from job output" in the Actions tab to capture the filename. To pass the filename to the next job, you can make use Smart folder variable, named pool variable or global variable. In my example, I will use a Smart folder variable called filename. Your 2nd job needs to execute "/scripts/newfile.sh –file %%filename".Below are screenshots from the file watcher job to accomplish this:
Couldn't the script that is triggered strip the filename to process?
You can also check out a utility on linux called Watchman. This can also allow you to trigger an action based on your criteria.