Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

bash random sleep

MINWAIT=10
MAXWAIT=30
sleep $((MINWAIT+RANDOM % (MAXWAIT-MINWAIT)))
Source by serverfault.com #
 
PREVIOUS NEXT
Tagged: #bash #random #sleep
ADD COMMENT
Topic
Name
6+3 =