- sleep - suspend execution for an interval
- sleep [ options ] [ duration ]
- 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:
- 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.
ISO 8601 duration where at least one of the duration parts must be specified.
- An ISO 8601 duration specifying n weeks.
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.
- Sleep until the date(1) compatible date/time.
- Sleep until a signal or a timeout is received. If duration is omitted or 0 then no timeout will be used.
- The execution was successfully suspended for at least duration or a SIGALRM signal was received.
- An error occurred.
- date(1), time(1), wait(1)
- sleep (AT&T Research) 2009-03-12
- David Korn <firstname.lastname@example.org>
- Copyright © 1982-2010 AT&T Intellectual Property