ksh - newbie to UNIX, looking to modify existing script. Synopsis of the code:
if [ -s $DATA_DIR/file.dat ]
then...
The script works fine, but I'd like to add an else clause to the end that will basically say, if the file.dat does not exist, sleep for 15 minutes and check for it again. Keep doing this until 10:00AM...if it's still not there, then stop checking and send me an email.
else
sleep 900
but then what?
if [ -s $DATA_DIR/file.dat ]
then...
The script works fine, but I'd like to add an else clause to the end that will basically say, if the file.dat does not exist, sleep for 15 minutes and check for it again. Keep doing this until 10:00AM...if it's still not there, then stop checking and send me an email.
else
sleep 900
but then what?