From 841142b6f7c1c387be7538a12dbceca6f7b8f3d3 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Fri, 8 Jul 2011 14:47:20 +0200 Subject: Update EXAMPLES --- src/randsleep.1 | 25 ++++++++----------------- 1 file 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 . -- cgit v1.2.3