Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: How to capture system return code when command launched in the background?

by ikegami (Patriarch)
on May 02, 2010 at 16:38 UTC ( [id://838001]=note: print w/replies, xml ) Need Help??


in reply to How to capture system return code when command launched in the background?

You're not the one launching it in the background (the shell is), so you can't find out. If you have launched it in the background yourself, wait and waitpid would set $? as system does.
  • Comment on Re: How to capture system return code when command launched in the background?
  • Download Code

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (7)
As of 2024-04-24 11:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found