sleep — Suspend Execution for an Interval
Synopsis
/usr/bin/sleep time
Description
The sleep command suspends execution for at least the integral number of seconds specified by the time operand.
If the sleep command receives a SIGALRM signal, one of the following actions is taken.
Terminate normally with a 0 exit status.
Effectively ignore the signal.
The sleep command takes the standard action for all other signals.
Operands
time | A nonnegative decimal integer specifying the number of seconds to suspend execution. |
Examples
The following example executes a command after 105 seconds.
castle% (sleep 105; find . -name core -print)&
castle%
The following example executes a command every so often.
while true
do
command sleep 37
done
Environment ...
Get Solaris™ 7 Reference now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.