diff options
author | Daniel Friesel <derf@finalrewind.org> | 2011-07-07 00:51:50 +0200 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2011-07-07 00:51:50 +0200 |
commit | 1f28f34dade2276b42c4a11bd8f81945473fce5f (patch) | |
tree | 6e9bfb119b37197639d7775213a7ee69f9afe441 | |
parent | 44c117388a93f86b4d39af53cf191ddaea90f165 (diff) |
randsleep.1: Add RATIONALE
-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 |