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: Andrew Gacek <andrew.gacek@g...>
Subject: Re: [Caml-list] How to monitor a specific file for changes
The OMake build system (omake.metaprl.org) is written in OCaml and has
support for monitoring the file system for changes (at least on Win32
and Linux). You might take a look at the source code for that system
and see what they use.

-Andrew

On 10/22/07, Orlin Grigorov <ogrigorov@gmail.com> wrote:
> Hi.
>
> This time I've done my research, but still I cannot find a good answer.
> Basically, I need to make a little ocaml process, which runs in the
> background and monitors a specific file for changes.   When a change occurs,
> I want it to back-up a copy of the version of the file at that moment.
> So, what I need is to set some signal or event, which will happen every time
> that file is changed.
>
> Can you guys help me do it?
>
> Thank you in advance!
>
> Orlin
>
> PS. If in any way I'm misusing this list (writing too much, or out of
> topic), please tell me, because I just don't know it.  The least I want is
> to spam the list with improper questions.
>
> _______________________________________________
> Caml-list mailing list. Subscription management:
> http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list
> Archives: http://caml.inria.fr
> Beginner's list:
> http://groups.yahoo.com/group/ocaml_beginners
> Bug reports: http://caml.inria.fr/bin/caml-bugs
>
>