How to execute a command whenever a file changes?
- by Denilson Sá
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…