I have a python script using Pyinotify that does some stuff on IN_MOVED_TO. What's the easiest way to trigger the script on specific files, using another python script, without actually moving the files out and back in?
you can avoid moving file by simply renaming the file (which is very similar on linux), for example a mv file file.sav && mv file.sav file
Trigger inotify events