Difference between revisions of "Sleep"

From Linuxintro
imported>ThorstenStaerk
(New page: sleep is a command that waits for some seconds. For example, sleep ''5'' waits for ''5'' seconds.)
 
imported>ThorstenStaerk
 
(5 intermediate revisions by 2 users not shown)
Line 1: Line 1:
[[sleep]] is a [[command]] that waits for some seconds. For example,  
+
[[sleep]] is a [[command]] that waits for a given time. For example,  
 
  sleep ''5''
 
  sleep ''5''
 
waits for ''5'' seconds.
 
waits for ''5'' seconds.
 +
sleep ''1m''
 +
waits for ''1 minute''.
 +
 +
The command [[wait]] does something else, it waits for a process to change its state.
 +
 +
= See also =
 +
* [[Shell Skripting Tutorial]]
 +
* [http://linux.die.net/man/3/sleep sleep man page]

Latest revision as of 08:31, 21 April 2014

sleep is a command that waits for a given time. For example,

sleep 5

waits for 5 seconds.

sleep 1m

waits for 1 minute.

The command wait does something else, it waits for a process to change its state.

See also