HP-UX Reference (11i v1 00/12) - 1 User Commands N-Z (vol 2)
__________________________________________________________________________________________________________________________________________________________________________________________________
__________________________________________________________________________________________________________________________________________________________________________________________________
STANDARD Printed by: Nora Chuang [nchuang] STANDARD
/build/1111/BRICK/man1/neqn.1
________________________________________________________________
___ ___
s
sleep(1) sleep(1)
NAME
sleep - suspend execution for an interval
SYNOPSIS
sleep time
DESCRIPTION
sleep suspends execution for time seconds. It is used to execute a command after a certain amount of
time, as in:
(sleep 105; command)&
or to execute a command periodically, as in:
while true
do
command
sleep 37
done
RETURN VALUE
sleep exits with one of the following values:
0 The execution was successfullysuspended for time seconds, or aSIGALRM signal was received.
>0 If the time operand is missing, is not a decimal integer, is negative, or is greater than
UINT_MAX, sleep returns with exit status 2.
SEE ALSO
alarm(2), sleep(3C).
STANDARDS CONFORMANCE
sleep: SVID2, SVID3, XPG2, XPG3, XPG4, POSIX.2
HP-UX Release 11i: December 2000 − 1 − Section 1−−881
___
___