🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #82776

Re: news.daily and missing innfeed.conf

#82776
From: Michael Grimm
Date: Wed, 10 Feb 2010 22:04
52 lines
3191 bytes
Russ Allbery <rra@stanford.edu> wrote:
> Russ Allbery <rra@stanford.edu> writes:
>> Michael Grimm <trashcan@odo.in-berlin.de> writes:

>>> Yes. I downloaded the one you posted yesterday, and I double 
>>> checked it again. Now, I modified your code as follows:
>>> ,----
>>> | echo "INNFEEDCONF= "$INNFEEDCONF
>>> | if [ -f ${INNFEEDCONF} ]; then
>
>> Missing quotes here.  This should be:
>
>>     if [ -f "${INNFEEDCONF}" ]; then
>
>> Otherwise, you end up running:
>
>>     [ -f ]
>
>> which because it's not valid syntax for the -f file test some versions of
>> test in some shells will interpret as equivalent to:
>
>>     [ -n "-f" ]
>
>> and return true.  This is one of those weird corners of Bourne shell
>> syntax.
>
> Although since $INNFEEDCONF is actually set, that's probably not the
> problem.  Hm.  But still, just in case there should probably be quotes.

Yes. It doesn't change:
,----
| if [ -f "${INNFEEDCONF}" ]; then
| echo "INNFEEDCONF= "${INNFEEDCONF}
|     INNFEEDSPOOL=`${AWK} '{gsub(/:|#/, " & ")} {if ($1 ==\
| 	"backlog-directory" && $2 == ":") print $3}' ${INNFEEDCONF}`
| echo "INNFEEDSPOOL= "$INNFEEDSPOOL
| fi
`----
In the logfile:
,----
| nawk: can't open file /usr/local/news/etc/innfeed.conf
| source line number 1
`----

Now, I'm puzzled by the fact that news.daily doesn't report my debugging
lines. Thus, this error message seems to be thrown somewhere else. But
that ${AWK} is the only one in news.daily ... Strange.

Regards,
Michael
-- 
to let
Technical Details
Message-ID: <hkvah2$1vmo$6@de-l.enfer-du-nord.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!border1.nntp.ams3.giganews.com!border2.nntp.ams3.giganews.com!border2.nntp.ams2.giganews.com!border2.nntp.ams.giganews.com!nntp.giganews.com!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!reader.enfer-du-nord.net!not-for-mail
References: <hkibmo$1ql2$3@de-l.enfer-du-nord.net> <hkjkms$56g$1@news.trigofacile.com> <hkjo4s$4ri$1@de-l.enfer-du-nord.net> <hkjtok$gd6$1@news.trigofacile.com> <hkka52$2f2o$1@de-l.enfer-du-nord.net> <hkmtlc$b1v$1@news.trigofacile.com> <hkn9ln$1r2h$1@de-l.enfer-du-nord.net> <hksf98$p99$1@news.trigofacile.com> <hkv2la$1icg$1@de-l.enfer-du-nord.net> <hkv56b$c82$1@news.trigofacile.com> <hkv610$1vmo$2@de-l.enfer-du-nord.net> <hkv7g7$eid$1@news.trigofacile.com> <hkv9g5$1vmo$5@de-l.enfer-du-nord.net> <87pr4c4v6m.fsf@windlord.stanford.edu> <87ljf04v55.fsf@windlord.stanford.edu>

Show Full Headers
Complete Article Headers
Message-ID: <hkvah2$1vmo$6@de-l.enfer-du-nord.net>
Subject: Re: news.daily and missing innfeed.conf
Date: Wed, 10 Feb 2010 22:04:18 +0000
From: Michael Grimm <trashcan@odo.in-berlin.de>
References: <hkibmo$1ql2$3@de-l.enfer-du-nord.net> <hkjkms$56g$1@news.trigofacile.com> <hkjo4s$4ri$1@de-l.enfer-du-nord.net> <hkjtok$gd6$1@news.trigofacile.com> <hkka52$2f2o$1@de-l.enfer-du-nord.net> <hkmtlc$b1v$1@news.trigofacile.com> <hkn9ln$1r2h$1@de-l.enfer-du-nord.net> <hksf98$p99$1@news.trigofacile.com> <hkv2la$1icg$1@de-l.enfer-du-nord.net> <hkv56b$c82$1@news.trigofacile.com> <hkv610$1vmo$2@de-l.enfer-du-nord.net> <hkv7g7$eid$1@news.trigofacile.com> <hkv9g5$1vmo$5@de-l.enfer-du-nord.net> <87pr4c4v6m.fsf@windlord.stanford.edu> <87ljf04v55.fsf@windlord.stanford.edu>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!border1.nntp.ams3.giganews.com!border2.nntp.ams3.giganews.com!border2.nntp.ams2.giganews.com!border2.nntp.ams.giganews.com!nntp.giganews.com!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!reader.enfer-du-nord.net!not-for-mail
Newsgroups: news.software.nntp
Organization: ATK - Alternative Tierklinik links der Einfalt
Lines: 52
X-Trace: de-l.enfer-du-nord.net
 eJwNysEBwCAIA8CVREmEcRTM/iO09z4sGms7QYegMWU84tqtHTdlODMtJ/jCU2Sn+ejXgHUtvLMU7hZFupDHIjFGRdz62we0ARlV
X-Complaints-To: abuse@de-l.enfer-du-nord.net
User-Agent: slrn/pre1.0.0-15/mm/ao (Darwin)
Cancel-Lock: sha1:TVvSqgOE0Brs6lBnszp9qXYuwUc=
Mail-Copies-To: nobody
X-Original-Bytes: 3055