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:03)
From: Orlin Grigorov <ogrigorov@g...>
Subject: How to monitor a specific file for changes

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!


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.