SLEEP ( 1 ) USER COMMANDSSLEEP ( 1 )


NAME

sleep - suspend execution for an interval

SYNOPSIS

sleep [ options ] [ duration ]

DESCRIPTION

sleep suspends execution for at least the time specified by duration or until a SIGALRM signal is received. duration may be one of the following:
integer
The number of seconds to sleep.
floating point
The number of seconds to sleep. The actual granularity depends on the underlying system, normally around 1 millisecond.
PnYnMnDTnHnMnS
An ISO 8601 duration where at least one of the duration parts must be specified.
PnW
An ISO 8601 duration specifying n weeks.
pnYnMnDTnHnmnS
A case insensitive ISO 8601 duration except that M specifies months, m before s or S specifies minutes and after specifies milliseconds, u or U specifies microseconds, and n specifies nanoseconds.
date/time
Sleep until the date(1) compatible date/time.

OPTIONS

-s
Sleep until a signal or a timeout is received. If duration is omitted or 0 then no timeout will be used.

EXIT STATUS

0
The execution was successfully suspended for at least duration or a SIGALRM signal was received.
>0
An error occurred.

SEE ALSO

date(1), time(1), wait(1)

IMPLEMENTATION

version
sleep (AT&T Research) 2009-03-12
author
David Korn <dgkorn@gmail.com>
copyright
Copyright © 1982-2010 AT&T Intellectual Property
license
http://www.opensource.org/licenses/cpl1.0.txt