BookRags.com Literature Guides Literature
Guides
Criticism & Essays Criticism &
Essays
Questions & Answers Questions &
Answers
Lesson Plans Lesson
Plans
My Bibliography Periodic Table U.S. Presidents Shakespeare Sonnet Shake-Up
Research Anything:        
History | Encyclopedias | Films | News | Create a Bibliography | More... Login | Register | Help
Not What You Meant?  There are 32 definitions for Sleep.

Sleep (Unix)

Print-Friendly
About 2 pages (450 words)

Bookmark and Share Know this topic well? Help others and get FREE products!

sleep is a Unix command line program that suspends program execution for a specified period of time. The sleep instruction suspends the calling process for at least the specified number of seconds (the default), minutes, hours or days.

Contents

Usage

sleep number[suffix]...
or:
sleep option

Where number is a required floating point number, and suffix is an optional suffix to indicate the time period.

Suffix

s (seconds)
m (minutes)
h (hours)
d (days)

Options

--help     display this help and exit
--version  output version information and exit

Examples

sleep 5 

Causes the current terminal session to wait 5 seconds. The default unit is seconds.

sleep 5h

Causes the current terminal session to wait 5 hours

sleep 3h ; mplayer foo.mp3

Wait 3 hours then play foo.mp3 Note that sleep 5h30m and sleep 5h 30m are illegal since sleep takes only one value and unit as argument. However, sleep 5.5h is allowed. Possible uses for sleep include scheduling tasks and delaying execution to allow a process to start.

See also

External links

View More Summaries on Sleep (Unix)
 
Ask any question on Sleep (Unix) and get it answered FAST!
Answer questions in BookRags Q&A and earn points toward
discounted or even FREE Study Guides and other BookRags products!
Learn more about BookRags Q&A
Copyrights
Sleep (Unix) from Wíkipedia. ©2006 by Wíkipedia. Licensed under the GNU Free Documentation License. View a list of authors or edit this article.

Article Navigation
Join BookRagslearn moreJoin BookRags




About BookRags | Customer Service | Report an Error | Terms of Use | Privacy Policy