Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: how to detect background process completed or not

by Tanalis (Curate)
on Aug 17, 2005 at 06:59 UTC ( [id://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?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (4)
As of 2024-04-25 20:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found