🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.future
Article #12

Re: reading news from multiple NNTP servers.

#12
From: Mark Bixby
Date: Wed, 12 Aug 1992 17:26
28 lines
1756 bytes
The NNTP version of trn can do this, via the NNTPSERVER env variable.  I've
built a script which allows flexible access to multiple servers.  It will
store the required "dot" files (.newsrc, .rnlast, .rnsoft) in a $HOME
directory of .trrn-{nntpserver}-{user $NAME}.  You need to keep separate
.newsrc files for each NNTP server or else trn will get really confused.
Here's how I do it; my default NNTP server is news.cerf.net:

#!/bin/sh
NNTPSERVER=${NNTPSERVER:-news.cerf.net}
suffix=${NAME:+`echo $NAME|sed -e 's/[^[:alpha:]]//g'`}
DOTDIR=${DOTDIR:-"$HOME/.trrn-$NNTPSERVER${suffix:+-$suffix}"}
export DOTDIR NNTPSERVER
if [ ! -d $DOTDIR ] ; then
  echo I am creating the following DOTDIR directory for you: $DOTDIR
  echo This will prevent trrn from conflicting with your standard trn files.
  echo "Please press RETURN to continue...\c"
  read junk
  mkdir $DOTDIR
fi
PATH=/usr/contrib/bin/trrndir:$PATH
export PATH
/usr/contrib/bin/trrndir/trrn
-- 
Mark Bixby                         Internet: markb@spock.dis.cccd.edu
Coast Community College District   1370 Adams Avenue
District Information Services      Costa Mesa, CA, USA  92626
Technical Support                  (714) 432-5064
"You can tune a file system, but you can't tune a fish." - tunefs(1M)
Technical Details
Message-ID: <BsvsGv.J29@spock.dis.cccd.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!olivea!sun-barr!ames!elroy.jpl.nasa.gov!usc!news!spock.dis.cccd.edu!markb
References: <1992Aug12.010716.16392@news.iastate.edu> <JAAPJL.92Aug12104313@cmb00.larc.nasa.gov>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!olivea!sun-barr!ames!elroy.jpl.nasa.gov!usc!news!spock.dis.cccd.edu!markb
From: markb@spock.dis.cccd.edu (Mark Bixby)
Newsgroups: news.future
Subject: Re: reading news from multiple NNTP servers.
Message-ID: <BsvsGv.J29@spock.dis.cccd.edu>
Date: 12 Aug 92 17:26:54 GMT
References: <1992Aug12.010716.16392@news.iastate.edu> <JAAPJL.92Aug12104313@cmb00.larc.nasa.gov>
Organization: Coast Community College District, Costa Mesa, CA
Lines: 28