Article View: news.software.nn
Article #6189Re: Multi .newsrc's ?
From: C Lewis
Date: Tue, 02 Aug 1994 02:15
Date: Tue, 02 Aug 1994 02:15
56 lines
2894 bytes
2894 bytes
lanny@crl.com (Lanny Finch) writes:
>I'm a newbee on the net and have managed to get a decent grip on many of
>nn's features, but despite a lot of rolling around it its many help
>files, I can't seem to find the answer to a question.
>Is it possible to designate files other than .newsrc from which to
>retrieve unread, subcribed-to postings?
>I'm thinking in terms of having a ".newsrc" taylored for me and another
>taylored for my wife and keep the big all-inclusive one just for laughs.
>I've tried running a little script that moves my personal file to .newsrc
>before the 'nn' call, but this method has resulted in at least one
>disaster (lost "main" .newsrc due to a system lockup).
You're on the right track. I keep two .newsrc files, one's work
related, the other is a little more frivalous.
I use two scripts to *copy* the appropriate .newsrc to the correct name.
You also need to move the select files. The only problems occur
with new groups first coming up when your reading the wrong .newsrc,
easily fixed with vi :-)
Below is an example script, just call it nn2 and create the appropriate
files on a once off basis (.nn/select.nn2 .newsrc2)
It copies the files you need into place and after reading copies the
altered ones back.
If the system crashes you only lose that session.
Duplicate for as many 'segments' as you need.
-----------------8<-------------->8--------------------
#!/bin/sh
#
# Example shell script to allow the use of multiple .newsrc's
# with nn6.4.18 (Should work with 6.5.* as far as I know)
# Author (:-) carl@probitas.cs.utas.edu.au
# *Use at own risk, no responsibility taken , etc, etc *
#
fred=`pwd`
cd
cp .newsrc2 .newsrc
cp .nn/select.nn2 .nn/select
/usr/new/bin/nn $*
cp .nn/select .nn/select.nn2
cp .newsrc .newsrc2
cd $fred
--
-------------------------------------------------------------------
| |
Carl Lewis | |
| carl@probitas.cs.utas.edu.au |
Technical Details
Message-ID:
<31ka8m$qbe@franklin.cc.utas.edu.au>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.nn.mbox.zip!bga.com!news.sprintlink.net!hookup!nntp.cs.ubc.ca!newsxfer.itd.umich.edu!gatech!howland.reston.ans.net!agate!ihnp4.ucsd.edu!munnari.oz.au!newsroom.utas.edu.au!probitas!carlReferences:
<31k169$ptv@crl2.crl.com>Show Full Headers
Complete Article Headers
Message-ID: <31ka8m$qbe@franklin.cc.utas.edu.au> Subject: Re: Multi .newsrc's ? Date: Tue, 02 Aug 1994 02:15:50 +0000 From: carl@probitas.cs.utas.edu.au (C Lewis) References: <31k169$ptv@crl2.crl.com> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.nn.mbox.zip!bga.com!news.sprintlink.net!hookup!nntp.cs.ubc.ca!newsxfer.itd.umich.edu!gatech!howland.reston.ans.net!agate!ihnp4.ucsd.edu!munnari.oz.au!newsroom.utas.edu.au!probitas!carl Newsgroups: news.software.nn Organization: University of Tasmania, Australia. Lines: 56 NNTP-Posting-Host: probitas.cs.utas.edu.au Keywords: .newsrc nn nonews no.news