Re: squid.sh problem

2002-12-17 Thread Ronan Lucio
Bob, It seems you added the -D option in the wrong place. The bellow squid.sh works for me in a charm: -- #!/bin/sh if ! PREFIX=$(expr $0 : \(/.*\)/etc/rc\.d/$(basename $0)\$); then echo $0: Cannot determine the PREFIX 2 exit 1 fi case $1 in start)

Re: squid.sh problem

2002-12-17 Thread Bob Hall
On Tue, Dec 17, 2002 at 10:13:15AM -0200, Ronan Lucio wrote: Bob, It seems you added the -D option in the wrong place. The bellow squid.sh works for me in a charm: -- #!/bin/sh if ! PREFIX=$(expr $0 : \(/.*\)/etc/rc\.d/$(basename $0)\$); then echo $0:

squid.sh problem

2002-12-16 Thread Bob Hall
When my FBSD 4.4 host starts, it runs squid.sh, which returns the following error: [: -D: unexpected operator The the machine is booted, it is not connected to the Internet, so I need the -D option. When I start squid manually, it happily accepts the -D option. This bash script has run