in reply to limiting children

It doesn't seem like it would be that complicated. Here is a very generalized approach. Of course you'll have to fill in the subs as required:
use strict; while (1) { my $run_ct = how_many_running(); my $wait_ct = how_many_waiting(); foreach (1..(10-$run_ct)) { launch_next_waiting(); } sleep 20; } sub how_many_running{} sub how_many_waiting{} sub launch_next_waiting{}

Hope this helps.

"Make everything as simple as possible, but not simpler." -- Albert Einstein

Replies are listed 'Best First'.
Re: Re: limiting children
by merlyn (Sage) on Oct 12, 2001 at 01:03 UTC