sleep(1)
_________________________________________________________________
sleep Command
suspend execution for an interval
_________________________________________________________________
SYNTAX
sleep time
DESCRIPTION
Sleep suspends execution for time seconds. You can use it 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
_________________________________________________________________
EXAMPLES
$ sleep 60; date
Waits about 60 seconds, then executes the date(1) command. Using
this format of the command, your current shell waits.
$ ( sleep 60; date )&
Waits about 60 seconds, then executes the date(1) command. This
format of the command starts a background shell and allows your
current shell to continue. For most applications of sleep this
is probably prefered.
$ while true; do ps -a; sleep 10; done &
Executes the ps command approximately every 10 seconds. Prints
information about all processes associated with the terminal
except for process group leaders.
_________________________________________________________________
DG/UX 4.00 Page 1
Licensed material--property of copyright holder(s)
sleep(1)
SEE ALSO
alarm(2), sleep(3C) in the Programmer's Reference for the DG/UX
System
DG/UX 4.00 Page 2
Licensed material--property of copyright holder(s)