From owner-freebsd-questions@FreeBSD.ORG Wed Dec 3 15:56:34 2003 Return-Path: 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 58CF916A4CE for ; Wed, 3 Dec 2003 15:56:34 -0800 (PST) Received: from mail.myhealthcarefirst.com (mail.myhealthcarefirst.com [66.119.4.62]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6725B43FB1 for ; Wed, 3 Dec 2003 15:56:32 -0800 (PST) (envelope-from Chad.Albert@myhealthcarefirst.com) content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Date: Wed, 3 Dec 2003 17:56:32 -0600 X-MimeOLE: Produced By Microsoft Exchange V6.0.6249.0 Message-ID: <433CEE75B1339547BBB373B3406653840DFE71@hfmail01.sgf.healthcarefirst.med> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Monitoring folder activity Thread-Index: AcO59c8uX8CJKHmyQ3CtSnln2M6FVQAAzJlA From: "Chad Albert" To: "Chris Pressey" cc: freebsd-questions@freebsd.org Subject: RE: Monitoring folder activity X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 03 Dec 2003 23:56:34 -0000 =20 That sound like it is exactly what I need, Thanks! -- Chad -----Original Message----- From: Chris Pressey [mailto:cpressey@catseye.mine.nu]=20 Sent: Wednesday, December 03, 2003 5:38 PM To: Chad Albert Cc: freebsd-questions@freebsd.org Subject: Re: Monitoring folder activity On Tue, 2 Dec 2003 15:42:27 -0600 "Chad Albert" wrote: > I am in need of a way to trigger an action when a file is written to=20 > user's home directories. I am sure there is a way to do this, but I=20 > don't know where to look. What I want to do is allow users to sftp a=20 > file into their home directory, then once the file is written, I want=20 > a server side process to email or otherwise transfer the file to=20 > another location so that it can be processed with some third party=20 > tools by a Windows user. Can anyone help me out? Have a look at /usr/ports/sysutils/wait_on "The wait_on command allows shell scripts to access the facilities provided by kqueue(3). This allows scripts to detect files being added to directories, data appended to files and many other things - all without polling." -Chris