I want a quick and simple way to execute a command whenever a file changes. I want something very simple, something I will leave running on a terminal and close it whenever I'm finished working with that file. Currently, I'm using this: while read; do ./myfile.py ; done And then I need to go to that terminal and press Enter, whenever I save that file on my editor. What I want is something like thi
![How to execute a command whenever a file changes?](https://cdn-ak-scissors.b.st-hatena.com/image/square/1903ece89af850aed3e9777e774c51491b959a61/height=288;version=1;width=512/https%3A%2F%2Fcdn.sstatic.net%2FSites%2Fsuperuser%2FImg%2Fapple-touch-icon%402.png%3Fv%3De869e4459439)