Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: require sugesstions for writing a perl script

by Anonymous Monk
on Mar 06, 2013 at 16:08 UTC ( [id://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

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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1022023]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (5)
As of 2024-03-28 08:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found