Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: require sugesstions for writing a perl script

by Anonymous Monk
on Mar 06, 2013 at 16:08 UTC ( #1022023=note: print w/ replies, xml ) Need Help??


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


Comment on Re: require sugesstions for writing a perl script
Download Code
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

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1022023]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (11)
As of 2015-07-28 23:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (260 votes), past polls