#!/bin/ksh #================================================================================================================================= # Write a script which will check for a given file in every 60 seconds in a given directory, #if find, send us a mail else keep running. We do not want to set this script in crontab. # Author - Atul Singh # Date - Aug 23, 2015 # Scenario - http://www.datagenx.net/2015/08/linux-shell-script-scenario-2.html # www.DataGenX.net #================================================================================================================================= while : do sleep 60 & pid=$! some_command arg1 arg2 wait $pid done