bookmark

linux - How to execute a command whenever a file changes? - Super User


Description

entr (http://entrproject.org/) provides a more friendly interface to inotify (and also supports *BSD & Mac OS X).

It makes it very easy to specify multiple files to watch (limited only by ulimit -n), takes the hassle out of dealing with files being replaced, and requires less bash syntax:

$ find . -name '*.py' | entr ./myfile.py

Preview

Tags

Users

  • @jil

Comments and Reviews