catsit-watch
— run
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:
-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.
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.