SLEEP(1)                   Commands and Applications                  SLEEP(1)




NAME

       sleep - suspend execution for an interval of time


SYNOPSIS

       sleep seconds


DESCRIPTION

       The  sleep  command suspends execution for a minimum of seconds.  sleep
       is used to schedule the execution of other commands (see  EXAMPLES  be‐
       low).

       If  the sleep command receives a SIGALRM signal, it terminates normally
       with a zero exit status, for any other signal it takes the standard ac‐
       tion.

       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.


EXAMPLES

       To  schedule  the  execution  of  a  command for some number of seconds
       later:

       sleep 1800; command_file

       This incantation would wait a half hour before running the script  com‐
       mand_file. (See the at(1) utility.)


VERSION

       This manual page documents sleep version 2.0.


ATTRIBUTIONS

       This  command was ported from FreeBSD source code for distribution with
       GNO/ME 2.0.6.


SEE ALSO

       at(1), setitimer(2), alarm(3), sleep(3)


STANDARDS

       The sleep command is expected to be POSIX.2 compatible.



GNO                             September 1997                        SLEEP(1)

Man(1) output converted with man2html