CATSIT-WATCH(1) | General Commands Manual | CATSIT-WATCH(1) |
NAME
catsit-watch
— run
command when files are modified
SYNOPSIS
catsit-watch |
[-ai ] [-d
delay] [-f
file] command ... |
DESCRIPTION
Thecatsit-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:
-a
- Append the path of the modified file to the arguments of command.
-d
delay- Wait delay milliseconds before running the command. Any further writes within that time do not trigger additional runs.
-f
file- Add file to the set of watched files.
-i
- Run the command once initially, before watching files.
EXIT STATUS
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.
SEE ALSO
AUTHORS
June McEnroe <june@causal.agency>
February 27, 2021 | OpenBSD 7.4 |