in reply to require sugesstions for writing a perl script

Why not try to run 50 processes and then sleep for 20 seconds and again run 50 processes, sleep 20 sec. and etc.

for i in 1 2 3 4 5 . . . . . . 1000 do nohup validation.pl $i & if [ $i%50=0 ]; then sleep 20 fi done

Regards, Pavel Petrov

Replies are listed 'Best First'.
Re^2: require sugesstions for writing a perl script
by Anonymous Monk on Mar 06, 2013 at 16:37 UTC

    My mistake in comparison (bash is tricky). Correction:

    for i in 1 2 3 4 5 . . . . . . 1000 do nohup validation.pl $i & let j=($i%50) if [ $j -eq 0 ]; then sleep 20 fi done

    Regards, Pavel Petrov