summary refs log tree commit diff
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--bin/watch.130
1 files changed, 30 insertions, 0 deletions
diff --git a/bin/watch.1 b/bin/watch.1
new file mode 100644
index 00000000..172115af
--- /dev/null
+++ b/bin/watch.1
@@ -0,0 +1,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 .