Thread View: news.software.nntp
5 messages
5 total messages
Started by David W. Summers
Wed, 17 Jun 1998 00:00
INN 2.0 innwatch script buggy?
Author: David W. Summers
Date: Wed, 17 Jun 1998 00:00
Date: Wed, 17 Jun 1998 00:00
29 lines
1438 bytes
1438 bytes
I'm compiling INN 2.0 on Linux and when the innwatch script starts
it says:
innwatch: [: integer expression expected before -lt
However I can't find an "-lt" anywhere in that script.
Could someone point me at the problem?
Other than that I haven't seen any other problems yet.
Thanks for a great new version! *MUCH* easier to configure!
- David Summers
--
--
"Never under-estimate the bandwidth of a station-wagon
David Summers full of tapes, hurtling down the highway."
dws@engr.uark.edu - Tanenbaum, "Computer Networks"
--
--
"Never under-estimate the bandwidth of a station-wagon
David Summers full of tapes, hurtling down the highway."
dws@engr.uark.edu - Tanenbaum, "Computer Networks"
Re: INN 2.0 innwatch script buggy?
Author: Michael Hall
Date: Wed, 17 Jun 1998 00:00
Date: Wed, 17 Jun 1998 00:00
25 lines
1581 bytes
1581 bytes
On 17 Jun 1998, David W. Summers wrote: > I'm compiling INN 2.0 on Linux and when the innwatch script starts > it says: > innwatch: [: integer expression expected before -lt > > > However I can't find an "-lt" anywhere in that script. > > Could someone point me at the problem? > > Other than that I haven't seen any other problems yet. > > Thanks for a great new version! *MUCH* easier to configure! You need to change the value for innwatch inodes from 7 to 4, either in 'config.data' and recompile or edit 'innwatch.ctl'. -- Mike Hall <mhall@riverside.org> - On the net at http://www.riverside.org System Administrator (*nix, Perl, CGI hacker, certified OS/2 Specialist)
Re: INN 2.0 innwatch script buggy?
Author: Andreas Muck
Date: Thu, 18 Jun 1998 00:00
Date: Thu, 18 Jun 1998 00:00
76 lines
3238 bytes
3238 bytes
dws@engr.uark.edu (David W. Summers) writes:
>I'm compiling INN 2.0 on Linux and when the innwatch script starts
>it says:
>innwatch: [: integer expression expected before -lt
I sent this email to inn-bugs last week, but didn't get any
feedback.
Date: Fri, 12 Jun 1998 12:22:28 +0200 (MEST)
From: Andreas Muck <andi@koala.rhein-neckar.de>
To: inn-bugs@isc.org
Subject: innwatch bug
Hello,
this is inn-1998-06-10_04-03 running on Linux 2.1.105 with bash version
2.01.1(1)-release. Storage method is cnfs. Running innwatch gives
periodically this error (or warning?):
/usr/local/news/bin/innwatch: [: : integer expression expected
/usr/local/news/bin/innwatch: [: : integer expression expected
I used "set -x" and tracked it down to this:
+ PREVEXP=/bin/df -i . | awk 'NR == 2 { print $7 }'
++ trap '' 2
++ eval '/bin/df -i . | awk '\''NR == 2 { print $7 }'\'''
+++ /bin/df -i .
+++ awk 'NR == 2 { print $7 }'
+ VALUE=
+ OK=n
+ '[' '(' -z '' -o '' '!=' 37 -o n = y ')' -a '' -lt 200 ']'
########################################## ^ here it is
/usr/local/news/bin/innwatch: [: : integer expression expected
+ '[' '' = 37 -a '(' throttle = throttle -o throttle = pause ')' -a '!' '' -lt 200 ']'
######################################### and here ^
/usr/local/news/bin/innwatch: [: : integer expression expected
+ read line
++ expr 37 + 1
+ LINE=38
This seems to be caused by the line 230:
if [ \( -z "${STATE}" -o "${STATE}" != "${LAB}" -o "${OK}" = y \) \
-a "${VALUE}" "-${TST}" "${LIM}" ] ; then
and 278:
elif [ "${STATE}" = "${LAB}" -a \
\( "${CMD}" = "throttle" -o "${CMD}" = pause \) -a \
! "${VALUE}" "-${TST}" "${LIM}" ] ; then
$VALUE seems to be set by `eval $EXP` which gives
`/bin/df -i . | awk 'NR == 2 { print $7 }'`
But the df output has only 6 fields:
Filesystem Inodes IUsed IFree %IUsed Mounted on
/dev/sdb1 104040 30146 73894 29% /var
so $VALUE remains empty. That's about all I could figure out :-)
I disabled innwatch because I don't need it anyway (single client serving
inn :-) but I wanted to let you know anyway.
Andi
--
Breslauer Str. 51 69124 Heidelberg Germany
Voice: +49 6221 780235 Data/Fax: +49 6221 783543
Rhein-Neckar Internet http://www.rhein-neckar.de/
Re: INN 2.0 innwatch script buggy?
Author: Andreas Muck
Date: Thu, 18 Jun 1998 00:00
Date: Thu, 18 Jun 1998 00:00
22 lines
1401 bytes
1401 bytes
Andreas Muck <andi@koala.rhein-neckar.de> writes:
>$VALUE seems to be set by `eval $EXP` which gives
>`/bin/df -i . | awk 'NR == 2 { print $7 }'`
I just checked it, it's set in innwatch.ctl on line 37. I guess it
should read:
... awk 'NR == 2 { print $4 }' ...
instead of print $7
like all the other df checks.
Andi
--
Breslauer Str. 51 69124 Heidelberg Germany
Voice: +49 6221 780235 Data/Fax: +49 6221 783543
Rhein-Neckar Internet http://www.rhein-neckar.de/
Re: INN 2.0 innwatch script buggy?
Author: Patrick Darden
Date: Wed, 24 Jun 1998 00:00
Date: Wed, 24 Jun 1998 00:00
20 lines
1155 bytes
1155 bytes
Michael Hall (mhall@ukiah.riverside.org) wrote: : On 17 Jun 1998, David W. Summers wrote: : > innwatch: [: integer expression expected before -lt : You need to change the value for innwatch inodes from 7 to 4, either in : 'config.data' and recompile or edit 'innwatch.ctl'. : edit innwatch.ctl in what way? I don't want to have to recompile innwatch if possible. -- -Sincerely, ----Patrick
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