SLEEP(1) Commands and Applications SLEEP(1)
sleep - suspend execution for an interval of time
The sleep command suspends execution for a minimum of seconds. sleep
is used to schedule the execution of other commands (see EXAMPLES
If the sleep command receives a SIGALRM signal, it terminates normally
with a zero exit status, for any other signal it takes the standard
The sleep utility exits with one of the following values:
0 On successful completion, or if the signal SIGALRM was received.
>0 An error occurred.
To schedule the execution of a command for some number of seconds
sleep 1800; command_file
This incantation would wait a half hour before running the script com-
mand_file. (See the at(1) utility.)
This manual page documents sleep version 2.0.
This command was ported from FreeBSD source code for distribution with
at(1), setitimer(2), alarm(3), sleep(3)
The sleep command is expected to be POSIX.2 compatible.
GNO September 1997 SLEEP(1)
Man(1) output converted with