I have to watch for any input given to or any changes that made in the present content over a file, upon any modification i need to run a python program which is located in the same folder.
I tried my best to understand but i’m not able to get any good result.
It would be of great help, if anyone can help me through this.
Thank you.. 🙂
Replace
cmdwith the command you want to execute andfile.watchedwith the file you want to watch, obviously.