Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 27 Jan 2002 22:07:05 -0500
From:      "Dan Langille" <dan@langille.org>
To:        Dan Nelson <dnelson@allantgroup.com>
Cc:        freebsd-hackers@FreeBSD.ORG
Subject:   Re: shell scripts that hang around forever
Message-ID:  <200201280307.g0S378D99807@lists.unixathome.org>
In-Reply-To: <20020128021836.GA87617@dan.emsphone.com>
References:  <200201280119.g0S1JHD97804@lists.unixathome.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200201280307.g0S378D99807>