Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re^2: How to optionally kill a child, and capture status if not killed.

by joelr (Novice)
on Apr 25, 2008 at 21:49 UTC ( #682926=note: print w/replies, xml ) Need Help??


in reply to Re: How to optionally kill a child, and capture status if not killed.
in thread How to optionally kill a child, and capture status if not killed.

Thanks pc88mxer!

Great tips.

The key was to wait for either process to finish in the parent, and to use "exec" instead of "system" to not consume the status read by "$?". Before that, I could not get "$?" to reflect the status.

I will update the example for any future searches.

  • Comment on Re^2: How to optionally kill a child, and capture status if not killed.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://682926]
help
Chatterbox?
[erix]: job hunting is an annoying situation to be in. Of course, once settled somewhere you're going to want out again...
[erix]: but that doesn't make the searching less anoying
[Tanktalus]: I've been looking for over 12 months :(
[erix]: that's bad... I can only wish you good luck

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (11)
As of 2017-05-23 19:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?