I have a script that scans a directory and does some maintenance on the files in it. Another process creates the files in the directory (10 – 30 files per day).
The script is called via a daily cron job . What I need is to trigger the script on an event (each time a new file is created in the directory). I prefer this rather than increasing the frequency of the cron job.
How can I do that? is there a command or a program to install?
Thanks in advance for any help.