*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->HP-UX 11i man pages -> sleep (1)              
Title
Content
Arch
Section
 

Contents


 sleep(1)                                                           sleep(1)




 NAME    [Toc]    [Back]
      sleep - suspend execution for an interval

 SYNOPSIS    [Toc]    [Back]
      sleep time

 DESCRIPTION    [Toc]    [Back]
      sleep suspends execution for time seconds.  It is used to execute a
      command after a certain amount of time, as in:

           (sleep 105; command)&

      or to execute a command periodically, as in:

           while true
           do
               command
               sleep 37
           done

 RETURN VALUE    [Toc]    [Back]
      sleep exits with one of the following values:

           0    The execution was successfully suspended for time seconds,
                or a SIGALRM signal was received.

           >0   If the time operand is missing, is not a decimal integer, is
                negative, or is greater than UINT_MAX, sleep returns with
                exit status 2.

 SEE ALSO    [Toc]    [Back]
      alarm(2), sleep(3C).

 STANDARDS CONFORMANCE    [Toc]    [Back]
      sleep: SVID2, SVID3, XPG2, XPG3, XPG4, POSIX.2


 Hewlett-Packard Company            - 1 -   HP-UX 11i Version 2: August 2003
[ Back ]
      
      
 Similar pages
Name OS Title
sleep IRIX suspend execution for interval
usleep OpenBSD suspend execution for interval of microseconds
sleep OpenBSD suspend execution for an interval of time
sleep FreeBSD suspend execution for an interval of time
sleep Tru64 Suspend execution for an interval of time
usleep Tru64 Suspend execution for an interval of time
usleep NetBSD suspend execution for interval of microseconds
sleep OpenBSD suspend process execution for interval of seconds
sleep NetBSD suspend process execution for interval of seconds
usleep FreeBSD suspend process execution for an interval measured in microseconds
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service