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

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

by salva (Canon)
on Jun 06, 2005 at 12:28 UTC ( #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? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (6)
As of 2022-12-05 08:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?