Jump to content United States-English
HP.com Home Products and Services Support and Drivers Solutions How to Buy
» Contact HP
More options
HP.com home
HP-UX Reference > S

sleep(1)

HP-UX 11i Version 3: February 2007
» 

Technical documentation

» Feedback
Content starts here

 » Table of Contents

 » Index

NAME

sleep — suspend execution for an interval

SYNOPSIS

sleep time

DESCRIPTION

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

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.

STANDARDS CONFORMANCE

sleep: SVID2, SVID3, XPG2, XPG3, XPG4, POSIX.2

Printable version
Privacy statement Using this site means you accept its terms Feedback to webmaster
© 1983-2007 Hewlett-Packard Development Company, L.P.