Re: shell scripts that hang around forever

2002-01-29 Thread Andrew
On Sun, 27 Jan 2002, Dan Langille wrote: > Folks: have a look at this FreshPorts shell script and let me know if > there is a better way to do this. You could avoid polling (at the expense of a fork) by using wait_on (PR #34414). Andrew To Unsubscribe: send mail to [EMAIL PROTECTED] with "

Re: shell scripts that hang around forever

2002-01-28 Thread Dan Langille
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: > > whil

Re: shell scripts that hang around forever

2002-01-28 Thread Dan Langille
Thank you Jason. Yes, it would be helpful. And I had wondered if that was possible. Cheers. FWIW: I am now testing the script using the ports/sysutils/daemontools utilities. That seems to be working well so far. I will be writing a daemontools article for the Diary and will post the URL h

Re: shell scripts that hang around forever

2002-01-28 Thread Jason Andresen
Dan Langille wrote: > > Folks: have a look at this FreshPorts shell script and let me know if > there is a better way to do this. > > This script waits for a file to arrive in a directory, then runs a scipt > to process it. It's part of FreshPorts. the procmail script spools the > incoming cvs

Re: shell scripts that hang around forever

2002-01-27 Thread Dan Langille
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: > > whil

Re: shell scripts that hang around forever

2002-01-27 Thread Dan Nelson
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

shell scripts that hang around forever

2002-01-27 Thread Dan Langille
Folks: have a look at this FreshPorts shell script and let me know if there is a better way to do this. This script waits for a file to arrive in a directory, then runs a scipt to process it. It's part of FreshPorts. the procmail script spools the incoming cvs-all message to a temporary loca