Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re^4: Execute progams in parallel

by kalyanrajsista (Scribe)
on Jan 25, 2010 at 12:11 UTC ( #819469=note: print w/ replies, xml ) Need Help??


in reply to Re^3: Execute progams in parallel
in thread Execute progams in parallel

Is there any way that I can get the return value like success or failure of the process that is executed


Comment on Re^4: Execute progams in parallel
Re^5: Execute progams in parallel
by molecules (Monk) on Jan 25, 2010 at 15:25 UTC
    You can get the exit status using the wait method as described in the documentation for Proc::Background:

    wait

    Wait for the process to exit. Return the exit status of the command as returned by wait() on the system. To get the actual exit value, divide by 256 or right bit shift by 8, regardless of the operating system being used. If the process never existed, then return an empty list in a list context, an undefined value in a scalar context, or nothing in a void context. This function may be called multiple times even after the process has exited and it will return the same exit status.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (9)
As of 2014-10-25 20:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (148 votes), past polls