Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options

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 ..

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://484327]
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 2016-10-26 08:14 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (337 votes). Check out past polls.