From owner-freebsd-questions@FreeBSD.ORG Mon Nov 7 15:21:47 2011 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 10DBA106564A for ; Mon, 7 Nov 2011 15:21:47 +0000 (UTC) (envelope-from ml@netfence.it) Received: from cp-out7.libero.it (cp-out7.libero.it [212.52.84.107]) by mx1.freebsd.org (Postfix) with ESMTP id 846A28FC0C for ; Mon, 7 Nov 2011 15:21:46 +0000 (UTC) X-CTCH-Spam: Unknown X-CTCH-RefID: str=0001.0A0B0204.4EB7F788.022D,ss=1,re=0.000,fgs=0 X-libjamoibt: 1555 Received: from soth.ventu (151.41.154.39) by cp-out7.libero.it (8.5.133) id 4E9539DD03CEA67C; Mon, 7 Nov 2011 16:21:44 +0100 Received: from alamar.ventu (alamar.ventu [10.1.2.18]) by soth.ventu (8.14.5/8.14.4) with ESMTP id pA7FLeXg037157; Mon, 7 Nov 2011 16:21:40 +0100 (CET) (envelope-from ml@netfence.it) Message-ID: <4EB7F784.7020104@netfence.it> Date: Mon, 07 Nov 2011 16:21:40 +0100 From: Andrea Venturoli User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; it-IT; rv:1.9.2.23) Gecko/20110930 Thunderbird/3.1.15 MIME-Version: 1.0 To: Warren Block References: <4EB7DD00.3070103@netfence.it> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.72 on 10.1.2.13 Cc: freebsd-questions@freebsd.org Subject: Re: Monitor directory and execute script 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: Mon, 07 Nov 2011 15:21:47 -0000 On 11/07/11 15:26, Warren Block wrote: > On Mon, 7 Nov 2011, Andrea Venturoli wrote: > >> I need to check for new or updated files in a directory and execute a >> script on them whenever that happens. >> Before I launch on complicated scripting, is there some >> utility/port/deamon that already does this? > > There's devel/gamin. Thanks for the answer. AFAICT gamin is a library; from there I'd need to develop some daemon, provide rc scripts, etc... My question was whether such a thing already exists. bye av.