Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things

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
Replies are listed 'Best First'.
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 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?

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

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (6)
As of 2015-10-04 17:57 GMT
Find Nodes?
    Voting Booth?

    Does Humor Belong in Programming?

    Results (104 votes), past polls