Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/eradman/entr
Run arbitrary commands when files change
https://github.com/eradman/entr
inotify kqueue test-automation
Last synced: about 2 months ago
JSON representation
Run arbitrary commands when files change
- Host: GitHub
- URL: https://github.com/eradman/entr
- Owner: eradman
- License: other
- Created: 2018-03-27T12:32:31.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2024-04-05T00:21:21.000Z (2 months ago)
- Last Synced: 2024-04-05T01:56:22.746Z (2 months ago)
- Topics: inotify, kqueue, test-automation
- Language: C
- Homepage: http://eradman.com/entrproject/
- Size: 951 KB
- Stars: 3,958
- Watchers: 31
- Forks: 98
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Lists
- awesome-cli-apps - entr - Run an arbitrary command when files change. (Files and Directories / Files)
- cli-apps - entr - Event Notify Test Runner - Run an arbitrary command when files change. (<a name="launcher"></a>Command launchers)
- awesome-stars - eradman/entr - Run arbitrary commands when files change (C)
- awesome-stars - entr
- awesome-stars - eradman/entr - Run arbitrary commands when files change (C)
- awesome-repositories - eradman/entr - Run arbitrary commands when files change (C)
- jimsghstars - eradman/entr - Run arbitrary commands when files change (C)
- awesome-stars - eradman/entr - Run arbitrary commands when files change (C)
- awesome-hledger - entr - Alternative to [watchexec](https://github.com/watchexec/watchexec) (Related Tools)
- awesome-stars - eradman/entr - Run arbitrary commands when files change (C)
- awesome-stars - entr - Run arbitrary commands when files change (C)
- awesome-stars - eradman/entr - Run arbitrary commands when files change (C)
- awesome-stars - eradman/entr - Run arbitrary commands when files change (C)
- awesome-stars - eradman/entr - Run arbitrary commands when files change (C)
- awesome-stars - entr - A utility for running arbitrary commands when files change (C)
- awesome-tools - `entr`
- my-stars - eradman/entr - Run arbitrary commands when files change (C)
- awesome-stars - eradman/entr - Run arbitrary commands when files change (C)
- awesome-cli-apps - entr - Event Notify Test Runner - Run an arbitrary command when files change. (<a name="launcher"></a>Command launchers)
README
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
----Notification of new releases are provided by an
[Atom feed](https://github.com/eradman/entr/releases.atom),
and release history is covered in the [NEWS](NEWS) file.