From 1f28f34dade2276b42c4a11bd8f81945473fce5f Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Thu, 7 Jul 2011 00:51:50 +0200 Subject: randsleep.1: Add RATIONALE --- src/randsleep.1 | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) 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 -- cgit v1.2.3