August 1999
Intermediate to advanced
1000 pages
83h 9m
English
/usr/bin/sleep time
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.
| time | A nonnegative decimal integer specifying the number of seconds to suspend execution. |
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 Read now
Unlock full access