Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: how to detect background process completed or not

by Tanalis (Curate)
on Aug 17, 2005 at 06:59 UTC ( #484327=note: print w/ replies, xml ) Need Help??


in reply to how to detect background process completed or not

Using the CPAN module Proc::Background, you should be able to write something like ..

use Proc::Background; my $proc = Proc::Background->new( $cmd ); $proc->wait; # wait for completion
Maybe a case of cracking a nut with a sledgehammer for this example, but it'd seem nice and clean, and to do what you need.

Hope that helps ..


Comment on Re: how to detect background process completed or not
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (11)
As of 2014-07-29 15:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (220 votes), past polls