Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/0xvpr/vpr-overwatch

A command line utility for executing a specified command when a file(s) is/are modified.
https://github.com/0xvpr/vpr-overwatch

command-line command-line-tool file-modification file-modification-time file-monitor tool watch watchdog watcher

Last synced: about 2 months ago
JSON representation

A command line utility for executing a specified command when a file(s) is/are modified.

Awesome Lists containing this project

README

        

# vpr-overwatch
A command line utility for executing a specified command when a
file(s) is/are modified.

## Usage
```bash
Error message: Missing arguments..

Usage: ./bin/vpr-overwatch /path/to/file1 /path/to/fileN -c 'command to execute' [ ]
or
Usage: ./bin/vpr-overwatch /path/to/file 'command to execute'

optional positional arguments:
/path/to/file(s), 'command'

required arguments:
-c specify a command to be executed
-f specify a single file to monitor

optional arguments:
-i execute at least once initially, before modification is detected
-r recurse through a given directory
-f specify frequency in microseconds
-v enable minimum verbosity
-vv enable increased verbosity
-vvv enable maximum verbosity

example:
./bin/vpr-overwatch . 'clear && echo testing'
```

## Building
- Linux
```bash
make
```

- Windows (using MSVC + CMake)
```powershell
cmake.exe . -B build
cmake.exe --build build --config Release
```