3 ms·
Isn't this the kind of thing that FAM was invented for? http://oss.sgi.com/projects/fam/ http://oss.sgi.com/projects/fam/ http://en.wikipedia.org/wiki/File_alt
by zimpenfish 16y ago
Isn't this the kind of thing that FAM was invented for?
http://oss.sgi.com/projects/fam/ http://oss.sgi.com/projects/fam/
http://en.wikipedia.org/wiki/File_alteration_monitor http://en.wikipedia.org/wiki/File_alteration_monitor
(Or specific things like inotify on Linux: http://en.wikipedia.org/wiki/Inotify http://en.wikipedia.org/wiki/Inotify )
- zimpenfish 16y ago(as in your process monitors the directory itself and picks up the renames without having to be signalled by another process - although you could just give it a SIGHUP when another process using FAM/inotify notices the rename but why complexify things?)
- db42 16y agoBut then, process will have to continuously keep a check on the directory. So, the time interval will need to be figured out for the process to wake up and check the directory for the renames.
- db42 16y agoIt seems that inotify will be perfect for my requirement. Thanks a lot..