Suspend execution for an interval (POSIX)
sleep time
- time
- A non-negative decimal integer specifying
the number of seconds to suspend execution. Note that
very large values for time that would sleep past
the year 2037 should be avoided. Note also that values
greater than 65536 are not necessarily supported on all
POSIX systems.
The sleep utility suspends execution for at least the integral
number of seconds specified by the time operand.
Sleep for 15 seconds:
sleep 15
The sleep utility takes the default action for all signals,
except that sleep terminates normally with a zero exit
status on receipt of a SIGALRM signal.
- 0
- The execution was successfully suspended for at least
time seconds, or a SIGALRM signal
was received.
- >0
- An error occurred.
sh