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.
TrackBack URL for this entry:
Listed below are links to weblogs that reference HOWTO: random sleep duration in bash: