Version française
Home     About     Download     Resources     Contact us    
Browse thread
How to monitor a specific file for changes
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Adrien <camaradetux@g...>
Subject: Re : [Caml-list] How to monitor a specific file for changes
As far as I remember MacOSX has a better support for monitoring file
system changes than Linux. In fact I remember reading a paper stating
it was unacceptable linux had no proper support for this while mac osx
has it.

You should probably have a look at the following page :
http://www.osxbook.com/software/fslogger/
Describing spotlight : "An in-kernel notification mechanism that can
inform user-space "subscribers" of file system changes as they
happen."
And about fslogger : "fslogger is a user-space program that subscribes
to the same file system event notification mechanism as the Spotlight
metadata server."

You'll probably need to embed C code in ocaml.

As for cross-platform solutions, hum, good luck...


 ---

Adrien Nader