Article View: news.software.readers
Article #12720Re: Accessing multiple nntp servers
From: Chris Lewis
Date: Wed, 16 Nov 1994 19:57
Date: Wed, 16 Nov 1994 19:57
35 lines
2101 bytes
2101 bytes
In article <3aar6q$736@usenety1.news.prodigy.com>,
bill davidsen <davidsen@prodigy.com> wrote:
>In article <3a2dfk$478@Tut.MsState.Edu>,
>David Simmons <simmons@EE.MsState.Edu> wrote:
>| Is there an elegant way to use two nntp servers for a site; one for local
>| newsgroups, and one for USENET newsgroups?
>Two answers to this one. One, since I change servers all the time to
>check on various machines, here's a ksh macro to preserve the info you
>want and switch between the servers:
I have something a little simpler, a shell script like this, omitting
the error checking:
NNTPSERVER=$1
if [ ! -d $HOME/News/$NNTPSERVER ]
then
mkdir $HOME/News/$NNTPSERVER
fi
HOME=$HOME/News/$NNTPSERVER
export HOME NNTPSERVER
<insert your newsreader here>
Changing HOME like this is, of course, dangerous for nested stuff. However,
not all newsreaders give you the opportunity to set .newsrc file names (etc)
without then clashing in some other way.
This one is more-or-less guaranteed to work with minimal manual intervention.
--
Chris Lewis: _Una confibula non sat est_
Phone: Canada 613 832-0541 Ferret list: ferret-request@ferret.ocunix.on.ca
Latest psroff: FTP://ftp.uunet.ca/distrib/chris_lewis/psroff3.0pl17/*
Latest hp2pbm: FTP://ftp.uunet.ca/distrib/chris_lewis/hp2pbm/*
Technical Details
Message-ID:
<CzC3Bn.CA3@ferret.ocunix.on.ca>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.admin.technical.mbox.zip!nntp.gmd.de!newsserver.jvnc.net!howland.reston.ans.net!pipex!uunet!not-for-mailReferences:
<3a2dfk$478@Tut.MsState.Edu> <3aar6q$736@usenety1.news.prodigy.com>Show Full Headers
Complete Article Headers
Message-ID: <CzC3Bn.CA3@ferret.ocunix.on.ca> Subject: Re: Accessing multiple nntp servers Date: Wed, 16 Nov 1994 19:57:07 +0000 From: clewis@ferret.ocunix.on.ca (Chris Lewis) References: <3a2dfk$478@Tut.MsState.Edu> <3aar6q$736@usenety1.news.prodigy.com> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.admin.technical.mbox.zip!nntp.gmd.de!newsserver.jvnc.net!howland.reston.ans.net!pipex!uunet!not-for-mail Newsgroups: news.admin.technical,news.software.readers,news.software.nntp Organization: eh? Lines: 34 Sender: zorch@ftp.UU.NET Approved: zorch@uunet.UU.NET Distribution: world NNTP-Posting-Host: ftp.uu.net Keywords: nntp multiple local