Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/oren0e/watchmon
Utility to watch and monitor for the existence of a specific term in a file and perform a bash command when the existence is false
https://github.com/oren0e/watchmon
Last synced: 24 days ago
JSON representation
Utility to watch and monitor for the existence of a specific term in a file and perform a bash command when the existence is false
- Host: GitHub
- URL: https://github.com/oren0e/watchmon
- Owner: oren0e
- License: mit
- Created: 2022-07-07T17:22:54.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-11-03T16:57:44.000Z (about 2 years ago)
- Last Synced: 2023-03-05T12:27:31.056Z (over 1 year ago)
- Language: Rust
- Size: 11.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
![example workflow name](https://github.com/oren0e/watchmon/workflows/Build/badge.svg)
# Overview
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.
# Installation
Currently the installation is done by:
1. Cloning this repo
2. Checking if Rust is installed: `make check_rust`. If rust is not installed this will download and install it
3. Running `make install`A `crates.io` release is planned.
# Usage
Run `watchmon --file --text-term --command `. Use the `-s` flag to indicate that you want to watch special system files (see https://github.com/notify-rs/notify/issues/421). For more info use `watchmon --help`.
# Contribute
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.