🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
2 messages
2 total messages Started by Jon S. Helmer Mon, 05 May 1997 00:00
innwatch problem
#17548
Author: Jon S. Helmer
Date: Mon, 05 May 1997 00:00
21 lines
1025 bytes
I've just installed INN 1.5.1 on Solaris 2.5.1 w/ recommended patches.  I
have everything working well, except for innwatch.  When it tries to start
from rc.news or from the command line, it gives the following error:

/news/bin/innwatch: test: unknown operator - gt

It apparently doesn't like this part of the script:

##  Parse JCL.
while [ $# -gt 0 ] ; do
    case X"$1" in

I can't find anything wrong with this.  Am I missing something?  Thanks for
any help you can provide!

Jon S. Helmer

jon@gi.net

Re: innwatch problem
#17573
Author: Jon S. Helmer
Date: Tue, 06 May 1997 00:00
40 lines
2227 bytes
Jon S. Helmer (jon@gi.net) wrote:
: I've just installed INN 1.5.1 on Solaris 2.5.1 w/ recommended patches.  I
: have everything working well, except for innwatch.  When it tries to start
: from rc.news or from the command line, it gives the following error:

: /news/bin/innwatch: test: unknown operator - gt

: It apparently doesn't like this part of the script:

: ##  Parse JCL.
: while [ $# -gt 0 ] ; do
:     case X"$1" in

: I can't find anything wrong with this.  Am I missing something?  Thanks for
: any help you can provide!

: Jon S. Helmer

To follow up, the above portion of script is fine.  What doesn't like the
gt operator is awk in my innwatch.ctl file.  Here are the relevant
lines from that file:

##  Next test the load average.  Above first threshold pause, above higher
##  threshold throttle, below restart limit undo whatever was done.
##  =()<!load!load hiload! uptime | tr -d ,. | awk '{ print $(NF - 2) }' ! lt ! @<INNWATCH_LOLOAD>@ ! go ! loadav>()=
!load!load hiload! uptime | tr -d ,. | awk '{ print $(NF - 2) }' ! lt ! 1000 ! go ! loadav
##  =()<!hiload!+ load! uptime | tr -d ,. | awk '{ print $(NF - 2) }' ! gt ! @<INNWATCH_HILOAD>@ ! throttle ! loadav>()=
!hiload!+ load! uptime | tr -d ,. | awk '{ print $(NF - 2) }' ! gt ! 2000 ! throttle ! loadav
##  =()<!load!+! uptime | tr -d ,. | awk '{ print $(NF - 2) }' ! gt ! @<INNWATCH_PAUSELOAD>@ ! pause ! loadav>()=
!load!+! uptime | tr -d ,. | awk '{ print $(NF - 2) }' ! gt ! 1500 ! pause ! loadav

Has anyone seen this problem before?  I've check the FAQ for this problem 
and found nothing.  Any input would be appreciated.  Thanks!

Jon S. Helmer

jon@gi.net

Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads