February 2001
Beginner to intermediate
448 pages
9h 2m
English
Official Description
Suspends execution for at least the specified time.
Syntax
sleep seconds
Options
None
Oddities
Depending on system activity, the actual time of suspension might be longer.
Example
$ date Mon Nov 27 14:45:37 EST 2000 $ sleep 15 # Sleep for 15 seconds $ print $? # Reports success after 15 seconds 0 $ date Mon Nov 27 14:46:04 EST 2000 $ $ sleep 15 # Interrupt the sleep with a Ctrl+C $ print $? 258 # Non-success status due to interruption $
Read now
Unlock full access