From owner-freebsd-questions@FreeBSD.ORG Fri Sep 5 05:37:39 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 92FAE16A4BF for ; Fri, 5 Sep 2003 05:37:39 -0700 (PDT) Received: from aviti.net (aviti.net [217.144.68.1]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8BB2843FFD for ; Fri, 5 Sep 2003 05:37:38 -0700 (PDT) (envelope-from life@zone3000.net) Received: from zone3000.kharkov.ua ([217.144.68.98] helo=adserver.zone3000.net) by aviti.net with esmtp (Exim 4.14) id 19vFqJ-000Hv1-J9 for freebsd-questions@FreeBSD.org; Fri, 05 Sep 2003 15:37:35 +0300 Received: from narik ([10.1.1.36]) by adserver.zone3000.net with Microsoft SMTPSVC(5.0.2195.6713); Fri, 5 Sep 2003 15:43:47 +0300 Message-ID: <004201c373aa$7b67f170$2401010a@zone3000.net> From: "Vitali Malicky" To: Date: Fri, 5 Sep 2003 15:37:34 +0300 MIME-Version: 1.0 Content-Type: text/plain; charset="koi8-r" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 X-OriginalArrivalTime: 05 Sep 2003 12:43:47.0812 (UTC) FILETIME=[59B4AA40:01C373AB] X-Scanner: exiscan for exim4 (http://duncanthrax.net/exiscan/) *19vFqJ-000Hv1-J9*gcQRUFj9NmA* Subject: I need to control a bunch of files. X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Vitali Malicky List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 05 Sep 2003 12:37:39 -0000 Hi, All! There is a question, sorry if you find it stupid. 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). Though I can do it from a simple script executed by the cron every five minutes or so, 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. Can anybody give me a hint? Thanks. WBR Vitali