summary refs log tree commit diff
path: root/bin/watch.1
blob: 172115af7b62fdb7fe0a0c7aec573c06c4c779f5 (plain) (blame)
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
.Dd $Mdocdate$
.Dt WATCH 1
.Os "Causal Agency"
.Sh NAME
.Nm watch
.Nd watch files
.Sh SYNOPSIS
.Nm
.Ar
.Ar command
.Nm
.Ar
.Cm --
.Ar command
.Op Ar "argument ..."
.Sh DESCRIPTION
.Nm
executes the
.Ar command
each time a
.Ar file
is modified.
.Sh EXAMPLES
.Dl watch watch.c make
.Dl watch wake.c watch.c -- make wake watch
.Sh CAVEATS
.Nm
does not support Linux
since it uses
.Xr kqueue 2 .