diff options
author | Daniel Friesel <derf@finalrewind.org> | 2011-07-08 14:47:20 +0200 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2011-07-08 14:47:20 +0200 |
commit | 841142b6f7c1c387be7538a12dbceca6f7b8f3d3 (patch) | |
tree | a33eb3146765a726ca4b4d0517c15c2c20b8a6d2 | |
parent | d3f44e3c99e36f362558fc8f01de370ba848ba6c (diff) |
Update EXAMPLES
-rw-r--r-- | src/randsleep.1 | 25 |
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 . |