Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/wankdanker/node-inotify-run
Run scripts on inotify events
https://github.com/wankdanker/node-inotify-run
Last synced: 14 days ago
JSON representation
Run scripts on inotify events
- Host: GitHub
- URL: https://github.com/wankdanker/node-inotify-run
- Owner: wankdanker
- Created: 2016-05-04T04:09:24.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2016-05-05T14:03:34.000Z (over 8 years ago)
- Last Synced: 2024-12-06T01:35:57.158Z (about 1 month ago)
- Language: JavaScript
- Size: 16.6 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
inotify-run
-----------A cli tool that waits for inotify events and executes a command.
The arguments that are passed to the command are as follows:
* **path** - the directory in which the effected file/directory resides
* **name** - the name of the file or directory effected by the event
* **events** - a comma separated list of events that occurredinstall
-------```sh
$ npm install -g inotify-run
```example
-------```sh
$ inotify-run -d 1 -p /opt/images -e IN_CREATE,IN_DELETE /opt/bin/update-database.sh
```--help
------```sh
Usage: index [options]Options:
-h, --help output usage information
-V, --version output the version number
-p, --path Path to watch
-d, --depth How many directories deep should be watched.
-e, --events List of events to watch for; see below.
-i, --include List of directories to include, globstyle (minimatch)
-x, --exclude List of directories to include, globstyle (minimatch)Debugging:
$ DEBUG=inotify-run:* inotify-run ...
Events:
IN_ACCESS IN_ATTRIB IN_CLOSE_WRITE IN_CLOSE_NOWRITE IN_CREATE
IN_DELETE IN_DELETE_SELF IN_MODIFY IN_MOVE_SELF IN_MOVED_FROM
IN_MOVED_TO IN_OPEN IN_IGNORED IN_ISDIR IN_Q_OVERFLOW
IN_UNMOUNT IN_ALL_EVENTS IN_ONLYDIR IN_DONT_FOLLOW IN_ONESHOT
IN_MASK_ADD IN_CLOSE IN_MOVE
```license
-------MIT