Random sleep in bash script
Random sleep in bash script
To insert a random sleep into a running script:
sleep $[ ( $RANDOM % 10 ) + 1 ]s
This will introduce a 1-10 second random sleep in the script.
sleep $[ ( $RANDOM % 10 ) + 1 ]s
This will introduce a 1-10 second random sleep in the script.
Comments
Post a Comment