From owner-freebsd-ports@FreeBSD.ORG Tue Nov 15 22:31:24 2005 Return-Path: X-Original-To: ports@freebsd.org Delivered-To: freebsd-ports@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7978D16A420; Tue, 15 Nov 2005 22:31:24 +0000 (GMT) (envelope-from mi+mx@aldan.algebra.com) Received: from vms048pub.verizon.net (vms048pub.verizon.net [206.46.252.48]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8E63143D6B; Tue, 15 Nov 2005 22:31:21 +0000 (GMT) (envelope-from mi+mx@aldan.algebra.com) Received: from corbulon.video-collage.com ([151.204.231.237]) by vms048.mailsrvcs.net (Sun Java System Messaging Server 6.2-4.02 (built Sep 9 2005)) with ESMTPA id <0IQ000KNPP0OT83E@vms048.mailsrvcs.net>; Tue, 15 Nov 2005 16:26:48 -0600 (CST) Received: from mteterin.us.murex.com (195-11.customer.cloud9.net [168.100.195.11]) by corbulon.video-collage.com (8.13.4/8.13.1) with ESMTP id jAFMQlFh027414 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 15 Nov 2005 17:26:47 -0500 Received: from mteterin.us.murex.com (mteterin@localhost [127.0.0.1]) by mteterin.us.murex.com (8.13.4/8.13.4) with ESMTP id jAFMQgHG008096; Tue, 15 Nov 2005 17:26:42 -0500 Received: from localhost (localhost [[UNIX: localhost]]) by mteterin.us.murex.com (8.13.4/8.13.4/Submit) id jAFMQe3Q008095; Tue, 15 Nov 2005 17:26:40 -0500 Date: Tue, 15 Nov 2005 17:26:40 -0500 From: Mikhail Teterin To: Sergey Matveychuk Message-id: <200511151726.40580.mi+mx@aldan.algebra.com> Organization: Virtual Estates, Inc. MIME-version: 1.0 Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7bit Content-disposition: inline X-Virus-Scanned: ClamAV devel-20050525/1175/Tue Nov 15 12:50:47 2005 on corbulon.video-collage.com X-Virus-Status: Clean X-Scanned-By: MIMEDefang 2.43 X-Authentication-warning: mteterin.us.murex.com: mteterin set sender to mi+mx@aldan.algebra.com using -f User-Agent: KMail/1.8.2 Cc: ports@freebsd.org, "Andrew P." Subject: Re: watch for files X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Nov 2005 22:31:24 -0000 =Is there an utility to watch files changes and make some defined =actions. Actions defined in a configuration file. On the low level BSDs have kqueue. On the higher level there is the devel/fam port, which uses smart mechanisms on Linux and Irix, but resorts to inefficient polling everywhere else, including BSD. An attempt to teach fam the benefits of kqueue exists at: http://sourceforge.net/projects/bsdfam but appears to have stalled. If you have "milk and time", you best improve the devel/fam. If not, you can just the existing fam API and wait for someone else to make it BSD-aware and efficient. -mi P.S. Andrew, please, stick to English on the international mailing lists.