From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on yquem.inria.fr X-Spam-Level: * X-Spam-Status: No, score=1.4 required=5.0 tests=SPF_NEUTRAL autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from mail4-relais-sop.national.inria.fr (mail4-relais-sop.national.inria.fr [192.134.164.105]) by yquem.inria.fr (Postfix) with ESMTP id 77638BC6B for ; Mon, 22 Oct 2007 21:11:28 +0200 (CEST) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AgAAAO+RHEdA6bjumGdsb2JhbACOVwEBAQEHBAQTGA X-IronPort-AV: E=Sophos;i="4.21,312,1188770400"; d="scan'208";a="18479560" Received: from wr-out-0506.google.com ([64.233.184.238]) by mail4-smtp-sop.national.inria.fr with ESMTP; 22 Oct 2007 21:11:27 +0200 Received: by wr-out-0506.google.com with SMTP id c8so814121wra for ; Mon, 22 Oct 2007 12:11:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=KBn7C3PR7HgCZ2r3t/qbK/jWuMYnR9d6RLF8TtOHgsY=; b=Wx7VzWcX1EZ7AyUDvoNZZrE28OsEgNOj2wXsc+GXHNHpbsZc+OIWcK/s0Lanhn7AsKCFFBM3UrD5myn9TnCLlH/rgjjrTQdI+0f1uWAmtdzHS8tOyjDbBU3HtrscOq5hX5uupxvcFJXfPr6nUadsBG3QueMq/qDD4csVs5Jt2Oc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=lB1ezXZwDeKLtfKecCTJOBXkUsvvdt0wrRzUrGODJ1BSLTS4vc+7NUseFf6IfA6EwORC1kGcNUUz+KLmHJfnNmnK8tsXJdxpzDmorAwq0Okfe1740SrzBJG7P5bV3xJuD0uSg+1dMDSNv6KVrGhRWxqXWw6e2EsSxXdkjsSatw8= Received: by 10.78.171.20 with SMTP id t20mr3402251hue.1193080284087; Mon, 22 Oct 2007 12:11:24 -0700 (PDT) Received: by 10.78.195.4 with HTTP; Mon, 22 Oct 2007 12:11:23 -0700 (PDT) Message-ID: Date: Mon, 22 Oct 2007 14:11:23 -0500 From: "Andrew Gacek" To: "Orlin Grigorov" Subject: Re: [Caml-list] How to monitor a specific file for changes Cc: caml-list@yquem.inria.fr In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: X-Spam: no; 0.00; ocaml:01 ocaml:01 improper:01 beginner's:01 bug:01 monitors:98 beginners:01 wrote:01 caml-list:01 caml-list:01 bin:01 caml:02 caml:02 archives:02 caml-bugs:02 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 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 > >