Friday, November 25, 2016

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. 

No comments:

Post a Comment

Cybermap

Internet Storm Center Infocon Status

Internet Storm Center Infocon Status
Internet Storm Center Infocon Status