🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #9943

Re: news.daily dying silently under solaris 2.4?

#9943
From: Andreas Lamprecht
Date: Wed, 07 Aug 1996 00:00
46 lines
2405 bytes
Nathan J. Mehl wrote:
[...] 
> The section in news.daily where it appears to be dying is:
> 
>         if ${DOMAIL} ; then
>             ##  Try to get a temporary file.
>             TEMP=${TMPDIR}/doex$$
>             test -f ${TEMP} && {
>                 echo "Temporary file ${TEMP} exists" | eval ${MAIL}
>                 exit 1
>             }
>             touch ${TEMP}
>             chmod 0660 ${TEMP}
>             exec 3>&1 >${TEMP} 2>&1
>         fi
> 
>         cd ${NEWSLIB}
> 
> ...and if I recall my sh correctly, that "exec" statement is simply
> there to redirect stdout into the tempfile which will eventually
> be mailed off to the news user.  Did Solaris break sh in some way
> that would make that fatal?  (The permissions on /tmp are set correctly
> AFAIK, and I assume the script would dump something to STDERR if it
> couldn't create the tempfile itself.)
> 
> The only other obvious possiblity is that it's breaking on the
> cd command.  ${NEWSLIB} is defined in innshellvars as /usr/local/news,
> which is a symlink to /news/newslib, which is in turn a symlink to
> /export/home/news/newslib, which is correct.  (Don't ask my why it's
> that way, I didn't set it up.)  Using two symlinks there couldn't be an
> issue...could it?
[..]
What about putting some "echo I'm here" before and after the cd
${NEWSLIB} so you see if it's the cd which stops your script.
If you see two "I'm here" in /tmp/doex$$, then you know all is right
and the error seems to be after that line.
Next, you can try to put "/export/home/news/newslib" instead of $NEWSLIB
after the cd.
And so on

Hope this helps ...

A. Lamprecht <Andreas.Lamprecht@siemens.at>

Technical Details
Message-ID: <320899A6.191B@sunnix.sie.siemens.co.at>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail
References: <4u539p$lfc@earendil.leftbank.com>

Show Full Headers
Complete Article Headers
Message-ID: <320899A6.191B@sunnix.sie.siemens.co.at>
Subject: Re: news.daily dying silently under solaris 2.4?
Date: Wed, 07 Aug 1996 00:00:00 +0000
From: Andreas Lamprecht <root@sunnix.sie.siemens.co.at>
References: <4u539p$lfc@earendil.leftbank.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail
X-Deja-AN: 172692322
Content-type: text/plain; charset=us-ascii
Organization: Siemens AG Austria
Mime-version: 1.0
Newsgroups: news.software.nntp
X-mailer: Mozilla 3.0b5a (X11; I; SunOS 5.4 sun4c)