> I'm confused.  Do you expect the file to be created by this script?

It seems to me he opened the script to get a handle to watch. Then he
watched this handle for writing to detect if another process wrote to the
file connected to this handle. This cannot work because the handle
represents this file only in the current program, so a watcher can only
detect write accesses performed VIA this handle, not to the file. I think
the suggested timer/stat() method is a good idea to check file access by
other processes, because I do not know a notification mechanism of any OS.

Greetings

                Jochen

Reply via email to