sleep(1)
NAME
sleep − suspend execution for an interval
SYNOPSIS
sleep time
AVAILABILITY
SUNWcsu
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 every so often, as in:
while true
do
command
sleep 37
done
ENVIRONMENT
If any of the LC_∗ variables ( LC_CTYPE, LC_MESSAGES, LC_TIME, LC_COLLATE, LC_NUMERIC, and LC_MONETARY ) (see environ(5)) are not set in the environment, the operational behavior of sleep for each corresponding locale category is determined by the value of the LANG environment variable. If LC_ALL is set, its contents are used to override both the LANG and the other LC_∗ variables. If none of the above variables is set in the environment, the "C" (U.S. style) locale determines how sleep behaves.
LC_CTYPE
Determines how sleep handles characters. When LC_CTYPE is set to a valid value, sleep can display and handle text and filenames containing valid characters for that locale. sleep can display and handle Extended Unix Code (EUC) characters where any individual character can be 1, 2, or 3 bytes wide. sleep can also handle EUC characters of 1, 2, or more column widths. In the "C" locale, only characters from ISO 8859-1 are valid.
LC_MESSAGES
Determines how diagnostic and informative messages are presented. This includes the language and style of the messages, and the correct form of affirmative and negative responses. In the "C" locale, the messages are presented in the default form found in the program itself (in most cases, U.S. English).
SEE ALSO
alarm(2), sleep(3C), environ(5)
SunOS 5.4 — Last change: 14 Sep 1992