Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re: Forking and running all child processes at the same time

by salva (Canon)
on Jun 06, 2005 at 12:28 UTC ( [id://463889]=note: print w/replies, xml ) Need Help??


in reply to Forking and running all child processes at the same time

use Proc::Queue size => 10, qw(run_back all_exit_ok); while(...) { my @logfn = get_log_names(); my @pids = map { run_back { process_log $_ } } @logfn; all_exit_ok(@pids) or print STDERR "some child failed\n"; }

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (3)
As of 2024-04-20 15:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found