Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

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: 2007-10-22 (19:43)
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 :
Describing spotlight : "An in-kernel notification mechanism that can
inform user-space "subscribers" of file system changes as they
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