Article View: news.software.nntp
Article #26305Re: inn-1.7.2.insync-1.1d, AIX 4.2.1, and scanlogs.
From: Dick Chimenti
Date: Mon, 16 Feb 1998 00:00
Date: Mon, 16 Feb 1998 00:00
69 lines
3430 bytes
3430 bytes
I remember a problem pointed out in an earlier release with AIX's
uniq. Now I don't remember the details but I did get another
version of "uniq" which the scanlogs script uses. I don't recall
either where I got it but it's probably a gnu version. As long
as I've continued using the imported "uniq" I haven't had a problem.
-dick
In article <wkoh0a1bwx.fsf@ibm.net>, Timothy Miller <tmill06@ibm.net> writes:
|>
|> I'm having an interesting problem here. INN is a new compilation
|> with CSet++ 3.1.3 (the 3.1.4 CD grew legs) on a new installation of 4.2.1
|> patched through the December 1997 mega-APAR.
|>
|> The scanlogs script is hanging on the following block:
|>
|> ${EGREP} '437 Unwanted newsgroup' ${PROBS} > ${T}
|> if [ -s ${T} ] ; then
|> echo Top ${TOP} unwanted newsgroups:
|> ${SED} 's/.*"\(.*\)".*/\1/' ${T} \
|> | sort | uniq -c | sort -nr | ${SED} ${TOP}q
|> echo ''
|> fi
|>
|> For reference, TOP=${TOP-20} (resolves as 20), T=/tmp/scan$$,
|> SED=/usr/bin/sed, EGREP=/usr/bin/egrep, and PROBS=/tmp/scanlog$$ and the
|> script is fed through /bin/sh.
|>
|> For whatever reason, the "sort -nr" portion of the above pipe
|> isn't exiting (or isn't being reaped, or isn't reaping the close of "uniq
|> -c"). This process remains even after the data is processed, which hangs
|> the pipe and scanlogs.
|>
|> SIGHUP'ing the "sort -nr" call closes it, which collapses the
|> pipe and scanlogs continues on it's way happily.
|>
|> What makes even less sense is that this is the 5th call of "sort
|> -nr" in the scanlogs script, out of a total of 8, and this is the *only*
|> one that hangs. It's *consistent* as it hangs here *every* time.
|>
|> It's *inconsistent* as I'm running an identical compilation of
|> INN (same INN version & CSet, nearly same config.data) on an AIX 4.2.0
|> system (mostly unpatched), and the 4.2.0 system does *not* hang in
|> scanlogs.
|>
|> There's more than enough FS space for the temp files (none show
|> abnormal usage during the hang), and with 2GB memory there should be more
|> than enough memory as well (the system is tuned to try to keep about
|> 400Mb free).
|>
|> For now I've simply commented out the block, hoping that it won't
|> hang on the next call. Tomorrow will tell.
|>
|> I'm x-posting to comp.unix.aix since if it's a problem with sort,
|> it's OS related; and to news.software.nntp in case anyone else has seen
|> this with INN. I'd take this to AIX support now, but I'd like a little
|> more specific info first, else I'm likely to get stonewalled. Of course,
|> it could be a shell bug too... *sigh*
|>
|> --
|> Cerebus <tmill06@ibm.net>
|>
--
Dick Chimenti chimenti@us.ibm.com
Technical Details
Message-ID:
<6c9p0j$ka6$1@sjnews.sanjose.ibm.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mailReferences:
<wkoh0a1bwx.fsf@ibm.net>Show Full Headers
Complete Article Headers
Message-ID: <6c9p0j$ka6$1@sjnews.sanjose.ibm.com> Subject: Re: inn-1.7.2.insync-1.1d, AIX 4.2.1, and scanlogs. Date: Mon, 16 Feb 1998 00:00:00 +0000 From: chimenti@vacuum.stl.ibm.com (Dick Chimenti) References: <wkoh0a1bwx.fsf@ibm.net> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail X-Deja-AN: 325627061 Reply-To: chimenti@vnet.ibm.com Organization: IBM Global Services Newsgroups: news.software.nntp,comp.unix.aix