Reputation: 509
I need to write a "command executor" that does the following:
I've tested IPC::Run. I've only been able to get it to run commands in chunks (X at a a time). I'd have to wait for those X to complete, then run another chunk. I could be doing something wrong though - the reference page for it is tough to follow. Will this do what I need?
I've also found the following which looks promising (How to write parallel programs in Perl?). Will this do what I need?
Upvotes: 1
Views: 396
Reputation: 118605
Conditions 2 and 3 are called throttling, and this feature is provided by modules such as Parallel::ForkManager
and Forks::Super
(I am the author of Forks::Super).
Upvotes: 1