Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

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

by joelr (Novice)
on Apr 25, 2008 at 17: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?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (4)
As of 2018-10-15 09:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    When I need money for a bigger acquisition, I usually ...














    Results (82 votes). Check out past polls.

    Notices?