From owner-freebsd-hackers Sun Jan 27 19: 7:18 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from lists.unixathome.org (lists.unixathome.org [210.48.103.158]) by hub.freebsd.org (Postfix) with ESMTP id BFE7C37B400 for ; Sun, 27 Jan 2002 19:07:15 -0800 (PST) Received: from wocker (lists.unixathome.org [210.48.103.158]) by lists.unixathome.org (8.11.6/8.11.6) with ESMTP id g0S378D99807; Mon, 28 Jan 2002 16:07:09 +1300 (NZDT) (envelope-from dan@lists.unixathome.org) Message-Id: <200201280307.g0S378D99807@lists.unixathome.org> From: "Dan Langille" Organization: DVL Software Limited To: Dan Nelson Date: Sun, 27 Jan 2002 22:07:05 -0500 MIME-Version: 1.0 Subject: Re: shell scripts that hang around forever Reply-To: dan@langille.org Cc: freebsd-hackers@FreeBSD.ORG In-reply-to: <20020128021836.GA87617@dan.emsphone.com> References: <200201280119.g0S1JHD97804@lists.unixathome.org> X-mailer: Pegasus Mail for Windows (v4.01) Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Content-description: Mail message body Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On 27 Jan 2002 at 20:18, Dan Nelson wrote: > In the last episode (Jan 27), Dan Langille said: > > Folks: have a look at this FreshPorts shell script and let me know if > > there is a better way to do this. > > Apart from maybe using echo instead of forking 'ls', and caching the > list: > > while : ; do > FILES=`echo *` > if [ "$FILES" != "*" ] ; then > for i in $FILES ; do $HOME/scripts/test-freebsd-cvs.sh $i ; done > fi > done > > it looks fine. Thanks Dan. I'm also looking at ports/sysutils/daemontools for starting and making sure this "service" is always running. See http://cr.yp.to/daemontools.html -- Dan Langille The FreeBSD Diary - http://freebsddiary.org/ - practical examples To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message