Is there a way to set something like a trigger on a file, so that everytime the file is changed a script or program will be executed?
I only found a mechanism for this within a shell script but would like to know if there is a mechanism for that on operating system basis (so that I don't have to manually run a background program). A solution on operating system basis would be a cron-job that runs every few seconds, but this does not look like an adequate solution to me.
It is for Debian, btw.
Thanks for help.