From owner-freebsd-questions@FreeBSD.ORG Wed Dec 3 15:33:11 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 270D616A4CF for ; Wed, 3 Dec 2003 15:33:11 -0800 (PST) Received: from priv-edtnes56.telusplanet.net (defout.telus.net [199.185.220.240]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1FC2743FBD for ; Wed, 3 Dec 2003 15:33:08 -0800 (PST) (envelope-from cpressey@catseye.mine.nu) Received: from catbus.biscuit.boo ([154.5.166.198]) by priv-edtnes56.telusplanet.netSMTP <20031203233307.TLMC15522.priv-edtnes56.telusplanet.net@catbus.biscuit.boo>; Wed, 3 Dec 2003 16:33:07 -0700 Date: Wed, 3 Dec 2003 15:38:27 -0800 From: Chris Pressey To: "Chad Albert" Message-Id: <20031203153827.366e5a95.cpressey@catseye.mine.nu> In-Reply-To: <433CEE75B1339547BBB373B3406653840DFE34@hfmail01.sgf.healthcarefirst.med> References: <433CEE75B1339547BBB373B3406653840DFE34@hfmail01.sgf.healthcarefirst.med> Organization: Cat's Eye Technologies X-Mailer: Sylpheed version 0.9.7 (GTK+ 1.2.10; i386-portbld-freebsd4.9) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit 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:33:11 -0000 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 > user's home directories. I am sure there is a way to do this, but I > don't know where to look. What I want to do is allow users to sftp a > file into their home directory, then once the file is written, I want > a server side process to email or otherwise transfer the file to > another location so that it can be processed with some third party > 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