summaryrefslogtreecommitdiffstats
path: root/bin/sleep
diff options
context:
space:
mode:
authortjr <tjr@FreeBSD.org>2002-06-10 09:33:15 +0000
committertjr <tjr@FreeBSD.org>2002-06-10 09:33:15 +0000
commitb9ecc7e16c1d10bc7cac12a3cd4a4e138929c63d (patch)
treed6f049eac387349af318ff6c57f1e124ab23c95e /bin/sleep
parentc41ca971a640122db2f419ac6cf4276a1b29b76c (diff)
downloadFreeBSD-src-b9ecc7e16c1d10bc7cac12a3cd4a4e138929c63d.zip
FreeBSD-src-b9ecc7e16c1d10bc7cac12a3cd4a4e138929c63d.tar.gz
Sort sections, use Ex macro in Diagnostics section, point out that the first
example only works with csh(1).
Diffstat (limited to 'bin/sleep')
-rw-r--r--bin/sleep/sleep.115
1 files changed, 4 insertions, 11 deletions
diff --git a/bin/sleep/sleep.1 b/bin/sleep/sleep.1
index 437abbb..c08b2fc 100644
--- a/bin/sleep/sleep.1
+++ b/bin/sleep/sleep.1
@@ -69,20 +69,11 @@ character as a decimal point).
This is a non-portable extension, and its use will nearly guarantee that
a shell script will not execute properly on another system.
.Ef
-.Sh DIAGNOSTICS
-The
-.Nm
-utility exits with one of the following values:
-.Bl -tag -width flag
-.It Li \&0
-On successful completion.
-.It Li \&>\&0
-An error occurred.
-.El
.Sh EXAMPLES
To schedule the execution of a command for
.Va x
-number seconds later:
+number seconds later (with
+.Xr csh 1 ) :
.Pp
.Dl (sleep 1800; sh command_file >& errors)&
.Pp
@@ -118,6 +109,8 @@ The script checks every five minutes for the file zzz.rawdata,
when the file is found, then another portion processing
is done courteously by sleeping for 70 seconds in between each
awk job.
+.Sh DIAGNOSTICS
+.Ex -std
.Sh SEE ALSO
.Xr nanosleep 2 ,
.Xr sleep 3
OpenPOWER on IntegriCloud