🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nn
Article #6267

Re: Multi .newsrc's ?

#6267
From: Milt Epstein
Date: Fri, 12 Aug 1994 19:16
35 lines
2370 bytes
boyle@netcom.com (Joseph Boyle) writes:

>nixltd@yarrow.wt.uwa.edu.au (Nautronix Australia) writes:
>
>>I just set $HOME to a subdirectory and run 'nn' again, it thinks it's not 
>>been run before and installs itself properly.
>
>Thanks! I took your advice and this remarkably short script does the job.
>
>#!/bin/csh
>setenv HOME ~boyle/.khris	#my guest's .newsrc is in here
>nn $1 $2
>
>Since the script's subshell has its own environment, HOME stays unchanged 
>in my original environment, so no worries about not setting it back.

I'm no wizard, but changing $HOME seems to me like a dangerous thing
to do, one of those things that can bite you in the ass, so to speak,
unexpectedly.  I suspect that lots of programs use it.

I didn't see what the original question was, but if it relates to
having two people using nn from the same account (or two .newsrc files
for whatever reason), I suspect there are safer ways of doing it.  For
example, have two .nn directories (say .nn1 and .nn2), each with their
own .newsrc, set nn's newsrc variable to look for the .newsrc file in
the .nn directory, then a script (or two) that moves the appropriate
.nn directory to .nn and calls nn.  I think something like this has
been proposed in the past in this group when similar questions have
been asked (and I don't know whether it was mentioned this time).

-- 
Milt Epstein
Department of Computer Science
University of Illinois
epstein@cs.uiuc.edu
Technical Details
Message-ID: <epstein.776718967@sparc7.cs.uiuc.edu>
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!swrinde!cs.utexas.edu!howland.reston.ans.net!vixen.cso.uiuc.edu!sparc7.cs.uiuc.edu!epstein
References: <31k169$ptv@crl2.crl.com> <31ka8m$qbe@franklin.cc.utas.edu.au> <nixltd.775826080@yarrow> <boyleCu7HHF.CKG@netcom.com>

Show Full Headers
Complete Article Headers
Message-ID: <epstein.776718967@sparc7.cs.uiuc.edu>
Subject: Re: Multi .newsrc's ?
Date: Fri, 12 Aug 1994 19:16:07 +0000
From: epstein@sparc7.cs.uiuc.edu (Milt Epstein)
References: <31k169$ptv@crl2.crl.com> <31ka8m$qbe@franklin.cc.utas.edu.au> <nixltd.775826080@yarrow> <boyleCu7HHF.CKG@netcom.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!swrinde!cs.utexas.edu!howland.reston.ans.net!vixen.cso.uiuc.edu!sparc7.cs.uiuc.edu!epstein
Newsgroups: news.software.nn
Organization: University of Illinois at Urbana
Lines: 35
Reply-To: epstein@cs.uiuc.edu
NNTP-Posting-Host: sparc7.cs.uiuc.edu
Keywords: .newsrc nn nonews no.news