Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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.