From owner-freebsd-questions@FreeBSD.ORG Thu Nov 17 00:24:44 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BED2B16A421 for ; Thu, 17 Nov 2005 00:24:44 +0000 (GMT) (envelope-from rools.ster@gmail.com) Received: from xproxy.gmail.com (xproxy.gmail.com [66.249.82.193]) by mx1.FreeBSD.org (Postfix) with ESMTP id BB5D043D72 for ; Thu, 17 Nov 2005 00:24:43 +0000 (GMT) (envelope-from rools.ster@gmail.com) Received: by xproxy.gmail.com with SMTP id h31so1833762wxd for ; Wed, 16 Nov 2005 16:24:43 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type; b=hdMCI0CUO2fYUlUVaLewr/q+NL45riTucGVPnlwsckylYZny51CMIfhFkuoTcS3/oOr3eh1+w9dwKRh8Mt8CwrSgbpyZBex6V3XEqvxiGhhyktzFk5soH04oVPoXyjBgcvXKlc58D6Eb1c95+73v03fYjcoSkFRxPmHnwOxpjPU= Received: by 10.65.126.9 with SMTP id d9mr3218780qbn; Wed, 16 Nov 2005 16:24:43 -0800 (PST) Received: by 10.64.76.16 with HTTP; Wed, 16 Nov 2005 16:24:42 -0800 (PST) Message-ID: Date: Thu, 17 Nov 2005 00:24:42 +0000 From: Rools S To: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Filesystem monitoring question X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Nov 2005 00:24:45 -0000 I have a FreeBSD 6.0 box with a mounted filesystem that is accessible to a number of clients via SMB and NFS. I would like to monitor activity on this filesystem so that every time a write to the mount is completed, my C program is run (which stats the file and stores some info about it in a database etc.) My question is: How do I construct a trigger for my code? If anyone can point me in the right direction I would greatly appreciate it= . Thanks Cornelis