in reply to running multiple system commands in parallel

Check this Parallel::ForkManager.
  • Comment on Re: running multiple system commands in parallel

Replies are listed 'Best First'.
Re^2: running multiple system commands in parallel
by ikegami (Patriarch) on Aug 28, 2009 at 19:34 UTC

    It's a great module, but it's useless here since the OP wants to capture the output of the children. For that, he'd need to use select or threads as part of the solution.

    He might want to take a look at Fork::Manager's code to see how to limit the number of concurrent children, but he won't be able to use the module itself.