🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
3 messages
3 total messages Started by Jon Mansey Mon, 23 Feb 1998 00:00
innwatch console error message
#26492
Author: Jon Mansey
Date: Mon, 23 Feb 1998 00:00
13 lines
805 bytes
/usr/news/bin/innwatch: [: integer expression expected before -lt


I get this twice on my console every time innwatch runs.

Im running inn172+insync on Linux2.0.33 blah blah....

What could be the cause of this then?

Jon.

Re: innwatch console error message
#26495
Author: Jim Dutton
Date: Tue, 24 Feb 1998 00:00
11 lines
1021 bytes

newsmaster@interpacket.net (Jon Mansey) writes:
>/usr/news/bin/innwatch: [: integer expression expected before -lt

>I get this twice on my console every time innwatch runs.

Look closely at your INNWATCH config file for an entry with a
non-integer before an "-lt" part. Might be just a simple typo.

Re: innwatch console error message
#26499
Author: Jon Mansey
Date: Tue, 24 Feb 1998 00:00
39 lines
1881 bytes
OK I think Ive found the problem.

The original innwatch.ctl was looking for field 7 of df -i to have the
value required, thus

!!! /bin/df -i . | awk 'NR == 2 { print $7 }' ! lt ! 200 ! throttle ! No space \
(spool inodes)

On my Linux (redHat 4.1, 2.0.33 etc etc) the df -i command outputs:

[news@ns news]$ df -i
Filesystem           Inodes   IUsed   IFree  %IUsed Mounted on
/dev/sda2             182272    2438  179834     1%  /
/dev/sda3             851968   14482  837486     2%  /usr

The free inodes are in the 4th field. There is no 7th field, hence the error.

So editing innwatch.ctl to:

!!! /bin/df -i . | awk 'NR == 2 { print $4 }' ! lt ! 200 ! throttle ! No space \
(spool inodes)

fixes the error message, and also I assume does a proper check for free
inodes ;-)

Jon.

In article <7359261236@port2.aixdialin.siu.edu>, (Jim Dutton) wrote:

> newsmaster@interpacket.net (Jon Mansey) writes:
> >/usr/news/bin/innwatch: [: integer expression expected before -lt
> 
> >I get this twice on my console every time innwatch runs.
> 
> Look closely at your INNWATCH config file for an entry with a
> non-integer before an "-lt" part. Might be just a simple typo.

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