aboutsummaryrefslogtreecommitdiff
path: root/watch.1
blob: 944df1f6ba6f83c501c690b8567e8cc9808238a6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
.\"	$Id$
.Dd December 07, 2003
.Dt WATCH 1
.Os
.Sh NAME
.Nm watch
.Nd execute program periodically, showing output fullscreen
.Sh SYNOPSIS
.Nm watch
.Op Fl v | Fl ns Ar <seconds>
.Op Ar command
.Sh DESCRIPTION
.Nm
runs
.Ar command
repeatedly, displaying its output fullscreen.
This allow you to watch a
.Ar command
output as it changes.
By default it updates output every 2 seconds.
.Pp
The
.Nm
will end with keyboard interrupt 
.Pq Sq ^C
.Pp
The options are as follows:
.Bl -tag -width Ds
.It Fl v
Show version and exit.
.It Fl n
Show no title.
.It Fl s Ar <seconds>
Delay in seconds between screen refresh.
.El
.Pp
.Sh EXAMPLE
.Nm
-s 1 ps x
.Pp
.Sh AUTHORS
The original
.Nm
was written by Tony Rems <rembo@unisoft.com> in 1991,
with mods and corrections by Francois Pinard.
It was rewritten by demon <demon@vhost.dyndns.org> in 2003.