diff options
-rw-r--r-- | src/randsleep.1 | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/randsleep.1 b/src/randsleep.1 index 0868c60..41d2fac 100644 --- a/src/randsleep.1 +++ b/src/randsleep.1 @@ -33,6 +33,23 @@ seconds. It is intended for use in cronjobs and similar. . . +.Sh RATIONALE +. +.Qq sleep $(( RANDOM % 120 )); do_stuff +and similar constructs are frequently used in crontab entries to decrease load +spikes when several entries are executed at the same time. +. +.Pp +. +However, in certain shells +.Pq such as Cm dash +.Ev $RANDOM +may not be available. +This leads to workarounds involving, for +example, /dev/urandom and cksum. Since repeating the same workarounds over +and over seems somewhat pointless, this tool was created. +. +. .Sh AUTHOR . Copyright (C) 2011 Daniel Friesel |