🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #7139

Re: Problem with microsoft.* batch-rpost script

#7139
From: Mike Pelletier
Date: Thu, 02 May 1996 00:00
29 lines
1560 bytes
Found another little glitch...
The batch-rpost script will overwrite an existing msnews.microsoft.com.nntp
file if posting failed on the previous run and another article has been
posted.  Make it look like the following:

------------
do      if [ "$file" = "" -o ! -s "$file" ]     # Nothing to do
        then continue
        fi
        if [ "${file%.nntp}" = "$file" ]
        then    if [ -f "$file.nntp" ]
                then mv $file.nntp $file.nntp.temp
		fi
                mv $file ${file}.nntp
                /usr/sbin/ctlinnd flush $file > /dev/null 2>&1
                cat $file.nntp.temp >> $file.nntp
                rm $file.nntp.temp
        fi
------------

Instead of moving the new batch directly into *.nntp, it'll check
for an existing *.nntp, move it out of the way, then move the new
batch, flush, then add the old batch to the end of the new batch.

	-Mike Pelletier.


Technical Details
Message-ID: <4mb61c$r41@valhalla.comshare.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
References: <4mafh1$qbs@valhalla.comshare.com>

Show Full Headers
Complete Article Headers
Message-ID: <4mb61c$r41@valhalla.comshare.com>
Subject: Re: Problem with microsoft.* batch-rpost script
Date: Thu, 02 May 1996 00:00:00 +0000
From: Mike Pelletier <mikep@comshare.com>
References: <4mafh1$qbs@valhalla.comshare.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: 152652977
Distribution: inet
Sender: mikep@valhalla.comshare.com
Organization: Comshare, Inc. - Ann Arbor, Michigan
Newsgroups: news.software.nntp