Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kjdev/fswatch
fswatch of notifytools use version.
https://github.com/kjdev/fswatch
Last synced: 25 days ago
JSON representation
fswatch of notifytools use version.
- Host: GitHub
- URL: https://github.com/kjdev/fswatch
- Owner: kjdev
- License: mit
- Created: 2014-01-27T01:52:45.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2014-01-27T01:53:13.000Z (almost 11 years ago)
- Last Synced: 2024-11-18T00:52:38.505Z (about 2 months ago)
- Language: C
- Size: 102 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# fswatch
This is a small program using the events a directory.
When an event about any change to that directory is received, the specified
shell command is executed by `/bin/bash`.[fswatch](https://github.com/alandipert/fswatch) of notifytools use version.
## Build
required cmake.
```
% mkdir build && cd build
% cmake ..
% make
% make install
```## Usage
```
% fswatch /some/dir "echo changed"
```This would monitor `/some/dir` for any change, and run `echo changed`
when a modification event is received.In the case you want to watch multiple directories, just separate them
with colons like:```
% fswatch /some/dir:/some/otherdir "echo changed"
```