From owner-freebsd-questions@FreeBSD.ORG Fri Sep 5 11: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 CF2EA16A4BF for ; Fri, 5 Sep 2003 11:33:11 -0700 (PDT) Received: from web21105.mail.yahoo.com (web21105.mail.yahoo.com [216.136.227.107]) by mx1.FreeBSD.org (Postfix) with SMTP id 5426543FF2 for ; Fri, 5 Sep 2003 11:33:11 -0700 (PDT) (envelope-from materribile@yahoo.com) Message-ID: <20030905183311.25912.qmail@web21105.mail.yahoo.com> Received: from [24.228.74.10] by web21105.mail.yahoo.com via HTTP; Fri, 05 Sep 2003 11:33:11 PDT Date: Fri, 5 Sep 2003 11:33:11 -0700 (PDT) From: Mark Terribile To: freebsd-questions@freebsd.org In-Reply-To: <20030905150535.3988516A4C0@hub.freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: Re: I need to control a bunch of files. 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: Fri, 05 Sep 2003 18:33:11 -0000 Vitali Malicky writes > I need to control a bunch of files. > As soon as any of these files changes it should > be immediately rechecked and correct chmod and > chown reset on this file(s). > I'd like them to be controlled by a process which > would monitor any possible changes in these files > and would do the job upon the event. If it's a local file system, you may be able to do it with the kqueue(2)/kevent(2) mechanism. __________________________________ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com