about summary refs log tree commit diff
CATSIT-WATCH(1) General Commands Manual CATSIT-WATCH(1)

catsit-watchrun command when files are modified

catsit-watch [-ai] [-d delay] [-f file] command ...

The catsit-watch utility runs a command each time any of a set of files are written to. If any watched files are removed or if the command exits non-zero, catsit-watch exits.

The arguments are as follows:

Append the path of the modified file to the arguments of command.
delay
Wait delay milliseconds before running the command. Any further writes within that time do not trigger additional runs.
file
Add file to the set of watched files.
Run the command once initially, before watching files.

If any watched files are removed, catsit-watch exits with EX_TEMPFAIL (75). If the command exits non-zero, catsit-watch exits with the same status.

catsitd(8)

June McEnroe <june@causal.agency>

February 27, 2021 OpenBSD 7.4