aboutsummaryrefslogtreecommitdiff
path: root/watch.1
blob: 79dffc7dae48dfdc2d806e356758a34499d8f0fd (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
47
48
.\"	$Id$
.Dd December 25, 2004
.Dt WATCH 1
.Os
.Sh NAME
.Nm watch
.Nd execute program periodically, showing output fullscreen
.Sh SYNOPSIS
.Nm watch
.Op Fl tv
.Op Fl s Ar time
.Op Ar command
.Sh DESCRIPTION
.Nm
runs
.Ar command
repeatedly and displays its output fullscreen.
This allow you to watch an output of the
.Ar command
as it changes.
The default delay between screen updates is 2 seconds.
.Pp
The
.Nm
will terminate with keyboard interrupt 
.Pq Sq ^C
.Pp
The options are as follows:
.Bl -tag -width Ds
.It Fl s Ar time
Set delay between screen updates in seconds.
.It Fl t
Disable output of title bar.
.It Fl v
Display version and exit.
.El
.Pp
.Sh EXAMPLE
.Nm
-s 1 ps
.Pp
.Sh AUTHORS
The original
.Nm
was written by Tony Rems <rembo@unisoft.com> in 1991,
with mods and corrections by Francois Pinard.
.Pp
It was rewritten by Dimitri Sokolyuk <demon@vhost.dyndns.org> in 2003.