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: -- (:)
From: Robert Fischer <robert@f...>
Subject: Re: [Caml-list] How to monitor a specific file for changes
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<body bgcolor="#ffffff" text="#000000">
I don't think there's an operating-specific signal/event for this: you
can poll the modification time on POSIX systems, though.<br>
~~ Robert.<br>
Orlin Grigorov wrote:
This time I've done my research, but still I cannot find a good
answer.&nbsp;&nbsp; Basically, I need to make a little ocaml process, which runs
in the background and monitors a specific file for changes.&nbsp;&nbsp; When a
change occurs, I want it to back-up a copy of the version of the file
at that moment.&nbsp;&nbsp;&nbsp; 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?<br>
Thank you in advance!<br>
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.&nbsp; The least I want
is to spam the list with improper questions.
  <pre wrap="">
<hr size="4" width="90%">
Caml-list mailing list. Subscription management:
<a class="moz-txt-link-freetext" href=""></a>
Archives: <a class="moz-txt-link-freetext" href=""></a>
Beginner's list: <a class="moz-txt-link-freetext" href=""></a>
Bug reports: <a class="moz-txt-link-freetext" href=""></a>