Browse thread
How to monitor a specific file for changes
[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ 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"> <html> <head> <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type"> <title></title> </head> <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> <br> ~~ Robert.<br> <br> Orlin Grigorov wrote: <blockquote cite="mid:b17e12b30710221203o17cb0bc0sfba89354cd5cd809@mail.gmail.com" type="cite">Hi.<br> <br> 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. <br> <br> Can you guys help me do it?<br> <br> Thank you in advance!<br> <br> Orlin<br> <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. The least I want is to spam the list with improper questions. <br> <pre wrap=""> <hr size="4" width="90%"> _______________________________________________ Caml-list mailing list. Subscription management: <a class="moz-txt-link-freetext" href="http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list">http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list</a> Archives: <a class="moz-txt-link-freetext" href="http://caml.inria.fr">http://caml.inria.fr</a> Beginner's list: <a class="moz-txt-link-freetext" href="http://groups.yahoo.com/group/ocaml_beginners">http://groups.yahoo.com/group/ocaml_beginners</a> Bug reports: <a class="moz-txt-link-freetext" href="http://caml.inria.fr/bin/caml-bugs">http://caml.inria.fr/bin/caml-bugs</a> </pre> </blockquote> </body> </html>