summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/randsleep.125
1 files changed, 8 insertions, 17 deletions
diff --git a/src/randsleep.1 b/src/randsleep.1
index 4b2651e..ece722a 100644
--- a/src/randsleep.1
+++ b/src/randsleep.1
@@ -62,23 +62,7 @@ It is an extremely simple C program with no additional dependencies, so using
it should not be a problem.
.
.
-.Sh EXAMPLES
-.
-.
-.Ss CRONTAB ONE-LINER
-.
-.Dl */10 * * * * root sleep $(( RANDOM % 120 )); do_stuff with arguments
-.
-.Pp
-.
-With
-.Nm ,
-this would look like:
-.
-.Dl */10 * * * * root randsleep 120 do_stuff with arguments
-.
-.
-.Ss CRONJOB SCRIPT
+.Sh EXAMPLE
.
.Dl #!/bin/sh
.Dl if [\& -z \&"$RANDOM\&" ]; then
@@ -96,6 +80,13 @@ With
.Dl randsleep 1800
.Dl # actually do something
.
+.Pp
+.
+Or
+.Pq as crontab entry :
+.
+.Dl 10 * * * * root \& \& randsleep 1800 /path/to/script with arguments
+.
.
.Sh AUTHOR
.