Article View: news.software.readers
Article #37423Re: .slrnrc question
From: Jan Hlavacek
Date: Thu, 04 Dec 1997 00:00
Date: Thu, 04 Dec 1997 00:00
81 lines
4276 bytes
4276 bytes
On 3 Dec 1997 19:23:36 GMT, Michael George <nospamgeorge@im4u.net> wrote:
> When trying to make this change, I found something strange about slrn
> (0.9.4.3 and S-Lang Library 0.99.38). It doesn't seem like a bug, but rather
> I am overlooking something in the setup. I'm hoping some of you slrn users
> out there can help me. I usually issue the command "slrn" to start slrn,
> letting the file .slrnrc (the default) set all the options.
>
> Currently, I have the following lines in my .slrnrc file:
> server snews.zippo.com .jnewsrc-zippo
> nnrpaccess snews.zippo.com myUsername myPassword
These two lines don't actually tell slrn which server to use. They just match
the server name with newsrc file and authorization data. AFAIK, there is
currently no way to set your server from your .slrnrc.
>
> and all works well. However, if I change those lines to read:
> server snews2.zippo.com .jnewsrc-zippo
> nnrpaccess snews2.zippo.com myUsername myPassword
What you should do is have the following four lines in your .slrnrc
server snews.zippo.com .jnewsrc-zippo
nnrpaccess snews.zippo.com myUsername myPassword
server snews2.zippo.com .jnewsrc-zippo2
nnrpaccess snews2.zippo.com myUsername myPassword
(The newsrc files should be different, since the two servers most likely
number articles differently. To start with, you may just copy .jnewsrc-zippo
to .jnewsrc-zippo2 and manually delete all the article numbers).
You will then be able to read news from either server. The server name you
either specify on the command line (slrn -h snews2.zippo.com), or in the
NNTPSERVER environment variable. (Makefile says something about
NNTPSERVERFILE variable, but I was never able to make this work).
> slrn fails with the error message:
> slrn 0.9.4.3 (Dec 1 1997 23:20:48)
>
> Reading startup file /home/george/.slrnrc.Unable to open
> /home/george/.jnewsrc. I will try .newsrc.
> slrn fatal error:
>
> Unable to open /home/george/.newsrc.
> If you want to create /home/george/.newsrc, add command line options:
> -f /home/george/.newsrc -create
Slrn is still connecting to snews.zippo.com (since you didn't tell it
otherwise). However, your .slrnrc file no longer maps this server name to a
newsrc file (since you changed the corresponding lines), so it tries to use
two default names (.jnewsrc and .newsrc), doesn't find them, and quits.
>
> Thinking that the '2' might cause a problem, I tried:
> server snewsb.zippo.com .jnewsrc-zippo
> nnrpaccess snewsb.zippo.com myUsername myPassword
>
> to see if slrn would search for the snewsb.zippo.com server, even though it
> doesn't exist. I got the same error message.
>
> Thinking there might be a problem with a server which doesn't really exist, I
> tried:
> server quark.im4u.net .jnewsrc-zippo
> nnrpaccess quark.im4u.net myUsername myPassword
>
> and got the same error.
>
> If I should use the command "slrn -h snews2.zippo.com" or substitute any of
> the other permutations mentioned above, all works well. I just get errors if
> I try to set something besides snews.zippo.com as the default.
As mentioned above, the "server" command in your .newsrc doesn't set the
default server. It just maps the server name to the newsrc file name.
lahvak
--
Jan Hlav\'{a}\v{c}ek <lahvak@math.mps.ohio-state.edu> (BCC's will bounce)
home page: http://www.math.ohio-state.edu/~lahvak/
slrn page: http://www.math.ohio-state.edu/~lahvak/software/slrn.html
slrn documentation: http://www.math.ohio-state.edu/~lahvak/software/slrn/
Technical Details
Message-ID:
<slrn68ccmd.ola.lahvak@math.mps.ohio-state.edu>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mailReferences:
<slrn68bcds.ti.nospamgeorge@brutus.im4u.net>Show Full Headers
Complete Article Headers
Message-ID: <slrn68ccmd.ola.lahvak@math.mps.ohio-state.edu> Subject: Re: .slrnrc question Date: Thu, 04 Dec 1997 00:00:00 +0000 From: lahvak@math.mps.ohio-state.edu (Jan Hlavacek) References: <slrn68bcds.ti.nospamgeorge@brutus.im4u.net> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mail X-Deja-AN: 295069197 Organization: Department of Mathematics, The Ohio State University Reply-To: lahvak@math.mps.ohio-state.edu Newsgroups: news.software.readers