🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
3 messages
3 total messages Started by Greg Robinson Thu, 03 Apr 1997 00:00
Anyone seen this?
#16654
Author: Greg Robinson
Date: Thu, 03 Apr 1997 00:00
18 lines
869 bytes
Linux 2.0.29 and INN 1.5.1

It's running ok, but I get this on the windown in which I run rc.news:

/usr/lib/news/bin/innwatch: [: integer expression expected before -lt

I can't seem to find a -lt in innwatch.ctl, plenty of lt though.

It's a bash thing I bet...

Greg.

-- 
Home: greg@arrakis.satech.net.au
Work: greg.robinson@dsto.defence.gov.au

Re: Anyone seen this?
#16673
Author: Anne Bennett
Date: Fri, 04 Apr 1997 00:00
23 lines
1474 bytes
Greg Robinson <greg@arrakis.satech.net.au> writes:
> 
> /usr/lib/news/bin/innwatch: [: integer expression expected before -lt
> I can't seem to find a -lt in innwatch.ctl, plenty of lt though.

"lt" in the "operator" field in innwatch.ctl will get executed as
"-lt" by innwatch -- that is correct.  The problem would be with
whatever is supposed to be generating an integer, and seems to be
generating something else; this would be the "code" in the field
before "lt" in innwatch.

I've put somewhat complex things in that field, and when I have to
debug them, I just fire up innwatch in the foreground with "sh -vx
innwatch", and watch what it does.  


Anne.
--
Ms. Anne Bennett          anne@alcor.concordia.ca            (514) 848-7606
Computing Services,   Concordia University,   Montreal QC,   Canada H3G 1M8

Re: Anyone seen this?
#16750
Author: James Youngman
Date: Mon, 07 Apr 1997 00:00
40 lines
1982 bytes
In article <5i04th$24l$1@morse.satech.net.au>, greg@arrakis.satech.net.au 
says...
>
>Linux 2.0.29 and INN 1.5.1
>
>It's running ok, but I get this on the windown in which I run rc.news:
>
>/usr/lib/news/bin/innwatch: [: integer expression expected before -lt
>
>I can't seem to find a -lt in innwatch.ctl, plenty of lt though.
>
>It's a bash thing I bet...

No, I seem to remember that this is because the output of df(1) isn't in the 
expected format unless you get config.data right.

My Red Hat system's INN-1.5.1 has config.data set up this way:-
(this is from a patch file in the source package)

##  How inn (not just innwatch anymore) gets disk space usage
+##  (SVR4 machine would probably use /usr/ucb/df)
+#### =()<INNWATCH_DF           @<INNWATCH_DF>@>()=
+INNWATCH_DF            /bin/df
+##  Field number of INNWATCH_DF (with -i) output that gives free
+##  inodes (starting at 1).
+#### =()<INNWATCH_INODES               @<INNWATCH_INODES>@>()=
+INNWATCH_INODES                        4
+##  Field number of INNWATCH_DF output that gives the free block count.
+##### =()<INNWATCH_BLOCKS              @<INNWATCH_BLOCKS>@>()=
+INNWATCH_BLOCKS                        4


-- 
James Youngman       VG Gas Analysis Systems  The trouble with the rat-race 
Before sending advertising material, read     is, even if you win, you're 
http://www.law.cornell.edu/uscode/47/227.html         still a rat.


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