You want to get notified when a file arrives. Maybe it is coming in from somewhere else, or just is the result of some processing.
What ever the case, never sit there waiting for a file to arrive again! 🙂
Put the code under example tab, in a cron entry. See reference for more detail about cron.
Change the minutes, hour, filename and mail address! 🙂 You may need to use mail instead of mailx and ksh, etc instead of bash. But the basic syntax is the same. 🙂
0-59 12 * * * bash -c "([ -f $HOME/test-touch ] &&
mailx -s "test-touch found at `date`" [email protected]