MR(1)

NAME
entr - run arbitrary commands when files change

SYNOPSIS
entr utility [arguments ...]
entr +fifo

DESCRIPTION
entr has two modes of operation; the first use reads a list of files provided on STDIN and executes the supplied utility if any of them change. entr waits for the child process to finish before responding to subsequent file system events.

The second mode also reads a list of files provided on STDIN and writes out their filenames to a named pipe if they are modified.

EXIT STATUS
The entr utility does not normally return, but it will exit with a value of 0 if the signal SIGINT was received.

EXAMPLES

Recompile if header files change

    $ find. -name '*.h' | entr make

Run tests if any file in the current directory changes, only printing STDERR

    $ echo '.' | entr sh -c './test.sh > /dev/null'

Convert any altered Markdown in the current directory to HTML using a FIFO

    $ ls *.md | entr +notify &
    $ cat notify | while read F;
    > do
    > markdown2html $F
    > done