How can i do the following task ,
Actually my task is to check if a file exists in a particular directory
7:15 pm every night. This file may or may not be in this directory , so
program should repeat this check every 20 minutes. It should stop this
checking at 9:15 pm and send out a pager saying that the file does not
exist in the directory
jus schedule this script to execte daily at 7:15 P.M using crontab.
while [ ! -f fileName ]
if [ $sleep_time -gt 120 ]
echo -n "page me :: "
echo "No mails even after 2 hours"
sleep_time=`expr $sleep_time + 20`
echo "waiting for 20 more minutes...."