Originally Posted by nanda22
I would like to be able to have a perl script get triggered to run when a new file shows up in a directory, does anyone has solution for this?
Thanks in advance
if your requirement is not too complicated, just do something like this
1) create a dummy file in your directory
2) use find command with -newer option to find files that are newer than this dummy file
find /path -type f -newer dummy.txt
3) trigger your perl script if found, at the same time, touch the dummy file to create new timestamp