Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/clibs/entr
A utility for running arbitrary commands when files change. Uses kqueue(2) or inotify(7) to avoid polling. entr responds to file system events by executing command line arguments or by writing to a FIFO. entr was written to provide to make rapid feedback and automated testing natural and completely ordinary.
https://github.com/clibs/entr
Last synced: 19 days ago
JSON representation
A utility for running arbitrary commands when files change. Uses kqueue(2) or inotify(7) to avoid polling. entr responds to file system events by executing command line arguments or by writing to a FIFO. entr was written to provide to make rapid feedback and automated testing natural and completely ordinary.
- Host: GitHub
- URL: https://github.com/clibs/entr
- Owner: clibs
- License: other
- Created: 2014-07-07T20:55:47.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2023-10-04T13:51:56.000Z (about 1 year ago)
- Last Synced: 2024-07-31T17:15:41.236Z (4 months ago)
- Language: C
- Size: 1.09 MB
- Stars: 599
- Watchers: 11
- Forks: 16
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
**WARNING:** This is a (possibly outdated and/or unmaintained) fork of https://github.com/eradman/entr . If you want to install entr, go to the [the original repository](https://github.com/eradman/entr) to get the latest release. Likewise, to file an issue or a pull request, head over to the [the original repository](https://github.com/eradman/entr).
Event Notify Test Runner
========================A utility for running arbitrary commands when files change. Uses kqueue(2) or
inotify(7) to avoid polling. `entr` was written to facilitate rapid feedback
on the command line.Source Installation - BSD, Mac OS, and Linux
--------------------------------------------./configure
make test
make installTo see available build options run `./configure -h`
Docker and WSL
--------------Incomplete inotify support on _Windows Subsystem for Linux_ and _Docker for Mac_
may cause `entr` to respond incorrectly. Setting the environment variable
`ENTR_INOTIFY_WORKAROUND` enables `entr` to operate in these environments.Linux Features
--------------Symlinks can be monitored for changes by setting the environment variable
`ENTR_INOTIFY_SYMLINK`.Man Page Examples
-----------------Rebuild a project if source files change, limiting output to the first 20 lines:
$ find src/ | entr -s 'make | head -n 20'
Launch and auto-reload a node.js server:
$ ls *.js | entr -r node app.js
Clear the screen and run a query after the SQL script is updated:
$ echo my.sql | entr -cp psql -f /_
Rebuild project if a source file is modified or added to the src/ directory:
$ while sleep 0.1; do ls src/*.rb | entr -d make; done
Auto-reload a web server, or terminate if the server exits
$ ls * | entr -rz ./httpd
News
----A release history as well as features in the upcoming release are covered in the
[NEWS](NEWS) file.