I want to run a little python script on my Freenas inside a Jail.
The script should watch out for a file. If this file is changed. It should do something.
So my question is what is the mechanism which allows me to monitor a file and run a method when the file is changed (In detail the content of one specific file) or is there another method to just call a python script in such a case.