sleepsuspend execution for a specified time |
Command |
sleep
seconds
sleep
command continues running until the specified
number of seconds has elapsed. sleep
can delay
execution of a program or produce periodic execution in conjunction with shell
commands.
The seconds argument can be either a number of seconds or a more general
time description of the form
nh
nm
ns
, with
nh
, nm
, and s
being optional.
sleeps for 20 hours and 10 minutes (or 72600 seconds).sleep 20h10m
0
Successful completion.
2
Failure because seconds value was not specified or is invalid (for example, invalid format).
h
nm
ns
argument format is an extension to the POSIX.2 standard.