Here is a quickie shell script (bash) tip. If you ever want to insert a random sleep/pause into a running script:
sleep $[ ( $RANDOM % 10 ) + 1 ]s
This will introduce a 1-10 second random sleep/pause in the script. Can be handy at times.
« HOWTO: Test JQuery AJAX autocomplete menus with Selenium | Main | How Gary Larson gets it wrong - fans should be encouraged, not scolded »
TrackBack URL for this entry:
http://www.typepad.com/services/trackback/6a00e5536e6b7c8834013485a5062c970c
Listed below are links to weblogs that reference HOWTO: random sleep duration in bash: