Re: Event in directory

[email protected] (Jochen Stenzel)
Newsgroups perl.loop
Message-ID <[email protected]>
> 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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.