Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
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 lurking in the Monastery: (4)
As of 2014-09-15 02:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite cookbook is:










    Results (145 votes), past polls