5 ms·
Mine watches for changes in a directory and runs a command on any save change. I use it a lot for Test Driven Development. Modify source code, save and automati
by dmoreno 7y ago
Mine watches for changes in a directory and runs a command on any save change. I use it a lot for Test Driven Development. Modify source code, save and automatically on a terminal it runs `make test` or similar.
https://gist.github.com/davidmoreno/c049e922e41aaa94e18955b9fac5549c https://gist.github.com/davidmoreno/c049e922e41aaa94e18955b9...
- 0xdeadb00f 7y agoHave you heard of wendy[1]? Might be useful, I'm not entirely sure if it suits your case because my experience with inotify is limited to playing around with it and nothing substantial coming from it. 1: http://z3bra.org/wendy/ http://z3bra.org/wendy/ (Author's blog post: http://blog.z3bra.org/2015/03/under-wendys-dress.html http://blog.z3bra.org/2015/03/under-wendys-dress.html)
- jumpm4n 7y agoAnother alternative is the entr command - https://www.systutorials.com/docs/linux/man/1-entr/ https://www.systutorials.com/docs/linux/man/1-entr/