Maybe I'm missing the point here, but if you don't want the script to die in case the alarm triggers, maybe just remove the respective call to die?
I also recommend looking at IPC::Run, which also has timeouts.
In reply to Re: How to run a command, gather its output and kill it after a specified time?
by moritz
in thread How to run a command, gather its output and kill it after a specified time?
by blindluke
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |