Questions tagged [entr]

For questions about the Event Notify Test Runner (entr), a tool to run arbitrary commands when files change on Unix-like operating systems.

The Event Notify Test Runner (entr) is a utility for running arbitrary commands when files change. It supports Unix-like operating systems (BSD, Mac OS, Linux, and Windows Subsystem for Linux). It is intended to facilitate rapid feedback and automated testing.

entr can be used to build, rebuild or take other actions when a file changes; for example, compiling code, generating documentation, or reloading a process.

See also https://bitbucket.org/eradman/entr/

4 questions
3
votes
1 answer

Stop entr from running twice when file is saved from vim

I am trying to automate running any Python file in a directory when the file is saved. That way, the doctests will run, and I don't have to switch away from the editor. My problem is that whenever I save a .py file, it runs twice. Here's my…
hstr
  • 193
1
vote
1 answer

Using "entr" to watch files, can I make it re-run the command after *every* file change?

entr seems to only rerun the command for changes that happen after the command has finished running. But I use this for rerunning tests after modifying my code. If I make a change to the source while the tests are still running, I really do want…
Greg
  • 13
1
vote
4 answers

Run command on single file when changed with some shell magic (e.g replace extension)

I am writing several .gv files (graphviz) in the same directory and want to create a png file with neato immediately when I have saved one of them. I am on macOS 10.12.6, with zsh as my default shell, and I have installed entr from…
Hotschke
  • 275
  • 2
  • 11
0
votes
2 answers

exit from entr inside script

After some googling, I found the entr utility to run a command on a file update. I can get it working, but unfortunately, I'm unable to exit from it. The literature about it isn't much and quite vague for me. I'd need a behaviour, like detect file…
gamb1t9
  • 11