From rolf.loudon@police.tas.gov.au Mon Mar 21 18:00:50 2005 Received: with ECARTIS (v1.0.0; list fam); Mon, 21 Mar 2005 18:00:55 -0800 (PST) Received: from cato.nettas.net (cato.nettas.net [202.7.15.72]) by oss.sgi.com (8.13.0/8.13.0) with ESMTP id j2M20nf9001961 for ; Mon, 21 Mar 2005 18:00:50 -0800 Received: from cato.nettas.net (localhost [127.0.0.1]) by localhost.nettas.net (Postfix) with ESMTP id 9CC1D5B0C for ; Tue, 22 Mar 2005 13:00:43 +1100 (EST) Received: from hobartdr01.police.tas.gov.au (unknown [192.190.61.142]) by cato.nettas.net (Postfix) with ESMTP id 4D13A73 for ; Tue, 22 Mar 2005 13:00:36 +1100 (EST) Received: from [202.7.9.6] ([202.7.9.6]) by hobartdm01.police.tas.gov.au (Lotus Domino Release 5.0.11) with ESMTP id 2005032213003531:672 ; Tue, 22 Mar 2005 13:00:35 +1100 Mime-Version: 1.0 (Apple Message framework v619.2) Message-Id: <24a260276303cb32d27bcfbf96b79991@police.tas.gov.au> To: fam@oss.sgi.com From: Rolf Subject: getting many "change" events for some files using SGI::FAM Date: Tue, 22 Mar 2005 13:00:41 +1100 X-Mailer: Apple Mail (2.619.2) X-MIMETrack: Itemize by SMTP Server on HobartDM01/Servers/TAS(Release 5.0.11 |July 24, 2002) at 22/03/2005 01:00:35 PM, Serialize by Router on hobartdr01/TAS(Release 5.0.11 |July 24, 2002) at 22/03/2005 01:00:36 PM, Serialize complete at 22/03/2005 01:00:36 PM Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII; format=flowed X-Brightmail-Tracker: AAAAAQAAAAQ= X-Whitelist: TRUE X-BLTReinsert: eUsFfLc/mkJpIPOBzzQCEaHhBDIA X-Virus-Scanned: ClamAV 0.83/778/Mon Mar 21 02:48:43 2005 on oss.sgi.com X-Virus-Status: Clean X-archive-position: 298 X-ecartis-version: Ecartis v1.0.0 Sender: fam-bounce@oss.sgi.com Errors-to: fam-bounce@oss.sgi.com X-original-sender: rolf.loudon@police.tas.gov.au Precedence: bulk X-list: fam hello using the perl fragment as published on the SGI::FAM CPAN module home: use SGI::FAM; my $fam=new SGI::FAM; $fam->monitor('/foo'); $fam->monitor('/foo/bar.txt'); while (1) { my $event=$fam->next_event; # Blocks print "Pathname: ", $event->filename, " Event: ", $event->type, "\n"; } when I monitor most files, and then as a test say open them in vi and issue a write command (:w) the script reports two 'change' events. But with some files I get consistently 32 'change' events reported. I thought initially it was related to the file size, but tests on similarly sized files do not reflect this. Is anyone able to explain why I would get multiple events reported on some files and not on the others - the vast majority of files tested report two events. My needs are simple and I could easily work around the multiple events (only need to know about one), but if I could solve the number of reported events it would be better. thanks rolf.