Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re^4: trying to get timeout to work

by Eliya (Vicar)
on Apr 11, 2012 at 14:46 UTC ( #964554=note: print w/ replies, xml ) Need Help??


in reply to Re^3: trying to get timeout to work
in thread trying to get timeout to work

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.


Comment on Re^4: trying to get timeout to work
Re^5: trying to get timeout to work
by halfcountplus (Hermit) on Apr 11, 2012 at 15:35 UTC

    Have you tried it?

    Yes. But I didn't add a print into the OP's handler, or a die into mine, which is why they seemed different due to the wait behaviour you describe. ;)

    All apologies, will edit.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://964554]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (5)
As of 2014-12-26 23:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (176 votes), past polls