cronjob checks for the file, if it's there run a script
cronscript.sh:
Code:
if [ -f /yourfile ]
then
yourscript.sh
fi
crontab -e
Code:
* * * * * /cronscript.sh >/dev/null 2>&1
to look for new files in a directory::
something like
Code:
find /directory -cmin -1 -type f -exec /yourscript.sh {}\;
in your script use the $1 variable and do something with the file
Edit:
forgot to say, when using ctime, a file will be processed again when it's modified too, so you should move them elsewhere after first procesing