nwatch
accepts file names and a command. It repeatedly checks the files for modifications and re-executes the given command.
make
For example, let’s say that you have two files named, index.html
and style.css
, and you want to restart the web server, every-time you modify any of the files.
nwatch index.html css/style.css -- python3 -m http.server
- Works only on UNIX like platforms.
- Currently the given command is launched using
exec
calls, so do not expectshell
like behavior, e.g.&
and file globing etc. However, it may be supported in the near future.