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.
 
 
 
Petr Vaněk 0640c6dc85
Use /dev/null rather than closed pipe for stdin in -r mode (#94)
3 months ago
missing Symlink changes detected on Linux by setting 'ENTR_INOTIFY_SYMLINK' 4 months ago
.gitignore Add .gitignore 3 years ago
LICENSE Add some clarify: BSD-licensed compatibility libraries are only used on MacOS and Linux 9 years ago
Makefile.bsd Symlink changes detected on Linux by setting 'ENTR_INOTIFY_SYMLINK' 4 months ago
Makefile.linux Use CPPFLAGS for settings that belong the C Preprocessor. Ports should be able to set CFLAGS without breaking the build 8 years ago
Makefile.macos Use CPPFLAGS for settings that belong the C Preprocessor. Ports should be able to set CFLAGS without breaking the build 8 years ago
NEWS Use /dev/null rather than closed pipe for stdin in -r mode (#94) 3 months ago
README.md Symlink changes detected on Linux by setting 'ENTR_INOTIFY_SYMLINK' 4 months ago
configure Minor simplification of ./configure 5 years ago
data.h Fix building with GCC 10 (#20) 3 years ago
entr.1 5.2 release 5 months ago
entr.c Use /dev/null rather than closed pipe for stdin in -r mode (#94) 3 months ago
entr_spec.c Report the signal number that terminated a child 5 months ago
system_test.sh Report the signal number that terminated a child 5 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 WSL

Incomplete inotify support on Windows Subsystem for Linux and Docker for Mac can cause entr to respond inconsistently. Setting the environment variable ENTR_INOTIFY_WORKAROUND will enable 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 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.