Here's my thought, I have a script that I want to monitor, if the script hangs for 20 minutes. The script will run from cron every 10 minutes. currently the script creates a lock file, so concurrent script (same script) can't run. Within this script, I would like to spawn a monitor (sub routine within script) that will kill the parent and itself, if the script hangs for 20 minutes and send a notification when it happens.
Is this possible, with out having to write another monitor type script?
TIA!
PerlMunger