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=0.0 required=5.0 tests=none 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 9E3A5BC69 for ; Mon, 22 Oct 2007 21:39:01 +0200 (CEST) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AgAAADKZHEfAXQInh2dsb2JhbACOVwEBAQgKKZNo X-IronPort-AV: E=Sophos;i="4.21,312,1188770400"; d="scan'208";a="18480477" Received: from concorde.inria.fr ([192.93.2.39]) by mail4-smtp-sop.national.inria.fr with ESMTP; 22 Oct 2007 21:39:01 +0200 Received: from mail1-relais-roc.national.inria.fr (mail1-relais-roc.national.inria.fr [192.134.164.82]) by concorde.inria.fr (8.13.6/8.13.6) with ESMTP id l9MJd01g031567 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=OK) for ; Mon, 22 Oct 2007 21:39:01 +0200 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AgAAAPeYHEfa1uFinmdsb2JhbACOVwEBAQEHBAYRGJNn X-IronPort-AV: E=Sophos;i="4.21,312,1188770400"; d="scan'208";a="3499394" Received: from smtp.syd.people.net.au ([218.214.225.98]) by mail1-smtp-roc.national.inria.fr with SMTP; 22 Oct 2007 21:38:59 +0200 Received: (qmail 9018 invoked from network); 22 Oct 2007 19:39:21 -0000 Received: from unknown (HELO hendrix.mega-nerd.net) (218.214.64.136) by smtp.syd.people.net.au with SMTP; 22 Oct 2007 19:39:21 -0000 Received: from hendrix (hendrix [192.168.200.99]) by hendrix.mega-nerd.net (Postfix) with SMTP id A0214AB1D1 for ; Tue, 23 Oct 2007 05:38:56 +1000 (EST) Date: Tue, 23 Oct 2007 05:38:56 +1000 From: Erik de Castro Lopo To: caml-list@inria.fr Subject: Re: [Caml-list] How to monitor a specific file for changes Message-Id: <20071023053856.c56bd0e5.mle+ocaml@mega-nerd.com> In-Reply-To: References: <20071023052001.517e957e.mle+ocaml@mega-nerd.com> Reply-To: caml-list@inria.fr Organization: Erik Conspiracy Secret Labs X-Mailer: Sylpheed 2.4.5 (GTK+ 2.12.0; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Miltered: at concorde with ID 471CFC54.000 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; ocaml:01 wrote:01 caml-list:01 erik:04 erik:04 osx:07 file:11 file:11 changes:12 think:13 think:13 version:13 mle:13 left:85 compare:15 Orlin Grigorov wrote: > Oh, here's another idea---every certain amount of time, I just compare my > last saved version of the file to the current one---if different, there's my > event. What do you think? I think you need to drop OSX and move to a better OS :-). Erik -- ----------------------------------------------------------------- Erik de Castro Lopo ----------------------------------------------------------------- "I saw `cout' being shifted "Hello world" times to the left and stopped right there." -- Steve Gonedes