Have you tried it?   AFAICT, this still doesn't do what the OP wants.

Instead of the script getting killed, when the alarm fires, it now prints "hey" to STDERR, and then still goes to wait 60 seconds until the suprocess completes by itself.


In reply to Re^4: trying to get timeout to work by Eliya
in thread trying to get timeout to work by Skeeve

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":