]> git.lizzy.rs Git - plan9front.git/blob - sys/man/1/sleep
games/galaxy: new mouse behavior
[plan9front.git] / sys / man / 1 / sleep
1 .TH SLEEP 1
2 .SH NAME
3 sleep \- suspend execution for an interval
4 .SH SYNOPSIS
5 .B sleep
6 .I time
7 .SH DESCRIPTION
8 .I Sleep
9 suspends execution for
10 .I time
11 seconds.
12 .I Time
13 may be floating-point.
14 .SH EXAMPLES
15 Execute a command
16 100 seconds hence.
17 .IP
18 .EX
19 {sleep 100; command}&
20 .EE
21 .PP
22 Repeat a command every 30 seconds.
23 .IP
24 .EX
25 while (){
26         command
27         sleep 30
28 }
29 .EE
30 .SH SOURCE
31 .B /sys/src/cmd/sleep.c
32 .SH "SEE ALSO"
33 .IR sleep (2)