A command line utility to watch and monitor for the existence of a specific term in the contents of a file. If the term is not found in the file the specified bash command gets executed.
Currently the installation is done by:
- Cloning this repo
- Checking if Rust is installed:
make check_rust
. If rust is not installed this will download and install it - Running
make install
A crates.io
release is planned.
Run watchmon --file <FILE PATH> --text-term <TEXT TERM> --command <BASH COMMAND>
. Use the -s
flag to indicate that you want to watch special system files (see notify-rs/notify#421). For more info use watchmon --help
.
You are more than welcome to make a contribution and open issues. To make a contribution please open a PR and make sure the tests and CI pass before requesting a code review.