There is a cron job that is set which runs throughout most of the day, sometimes the job gets stuck and I would like to set a time or check on it which let's me know if it has been stuck for more than 20 minutes, I wanted to get ideas on how I can do this. At the end I would love to have it email us if it indeed has taken more than 20 minutes. Here is my crontab entry:
00 07 * * * /u01/home/oracle/sysadm/run_trans_push.sh > /u01/home/oracle/trc/run_trans_push.sh_`date +\%b_\%d`.trc 2>&1
This creates a trace file also.