From owner-freebsd-hackers@FreeBSD.ORG Fri Nov 18 16:55:54 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 072EF16A41F for ; Fri, 18 Nov 2005 16:55:54 +0000 (GMT) (envelope-from bv@bilver.wjv.com) Received: from wjv.com (fl-65-40-24-38.sta.sprint-hsd.net [65.40.24.38]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8A23D43D46 for ; Fri, 18 Nov 2005 16:55:53 +0000 (GMT) (envelope-from bv@bilver.wjv.com) Received: from bilver.wjv.com (localhost.wjv.com [127.0.0.1]) by wjv.com (8.13.5/8.13.1) with ESMTP id jAIGtp8U054690 for ; Fri, 18 Nov 2005 11:55:51 -0500 (EST) (envelope-from bv@bilver.wjv.com) Received: (from bv@localhost) by bilver.wjv.com (8.13.5/8.13.1/Submit) id jAIGtkmB054689 for freebsd-hackers@freebsd.org; Fri, 18 Nov 2005 11:55:46 -0500 (EST) (envelope-from bv) Date: Fri, 18 Nov 2005 11:55:46 -0500 From: Bill Vermillion To: freebsd-hackers@freebsd.org Message-ID: <20051118165546.GM53311@wjv.com> References: <20051118120040.5B6B616A423@hub.freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20051118120040.5B6B616A423@hub.freebsd.org> Organization: W.J.Vermillion / Orlando - Winter Park ReplyTo: bv@wjv.com User-Agent: Mutt/1.5.11 X-Spam-Status: No, score=-4.4 required=5.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham version=3.1.0 X-Spam-Checker-Version: SpamAssassin 3.1.0 (2005-09-13) on bilver.wjv.com Subject: Re: Filesystem monitoring question X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: bv@wjv.com List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 Nov 2005 16:55:54 -0000 On Fri, Nov 18, 2005 at 12:00 , freebsd-hackers-request@freebsd.org showing utter disregard for spell-checkers gave us this: > Date: Thu, 17 Nov 2005 15:07:48 +0000 > From: Cornelis Swanepoel > Subject: Filesystem monitoring question > I have a FreeBSD 6.0 box with a partition that is accessible to > a number of clients via SMB and NFS. > I would like to monitor activity on this partition so that every > time a write to it is completed, my C program is run (which > stats the file and stores some info about it in a database > amongst other things) > My question is: What do I need to learn in order to construct a > trigger for my code? > If anyone can point me in the right direction I would greatly > appreciate it. What is that you need that fam won't do. See man 1m fam. Bill -- Bill Vermillion - bv @ wjv . com