You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
Eric Radman bd96a65e7c Detect files moved to or from directories on Linux 2 weeks ago
missing Detect files moved to or from directories on Linux 2 weeks ago
.gitignore Add .gitignore 2 years ago
LICENSE Add some clarify: BSD-licensed compatibility libraries are only used on MacOS and Linux 8 years ago
Makefile.bsd Detect files moved to or from directories on Linux 2 weeks ago
Makefile.linux Use CPPFLAGS for settings that belong the C Preprocessor. Ports should be able to set CFLAGS without breaking the build 7 years ago
Makefile.macos Use CPPFLAGS for settings that belong the C Preprocessor. Ports should be able to set CFLAGS without breaking the build 7 years ago
NEWS Detect files moved to or from directories on Linux 2 weeks ago
README.md Update README with current man page examples 4 months ago
configure Minor simplification of ./configure 3 years ago
data.h Fix building with GCC 10 (#20) 2 years ago
entr.1 5.0 release 4 weeks ago
entr.c 5.0 release 4 weeks ago
entr_spec.c Print control sequences instead of executing /bin/clear 5 months ago
system_test.sh Skip git revert test if header files cannot be found 3 months ago

README.md

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 make rapid feedback and automated testing natural and completely ordinary.

Source Installation - BSD, Mac OS, and Linux

./configure
make test
make install

To see available build options run ./configure -h

Docker and Windows Subsystem for Linux

Incomplete inotify support on WSL and Docker for Mac can cause entr to respond inconsistently. Since version 4.4, entr includes a workaround: Set the environment variable ENTR_INOTIFY_WORKAROUND.

entr will confirm the workaround is enabled:

entr: broken inotify workaround enabled

Man Page Examples

Rebuild a project if source files change, limiting output to the first 20 lines:

$ find src/ | entr sh -c '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 file.