Thread View: news.software.readers
2 messages
2 total messages
Started by David Mears
Fri, 13 Dec 1996 00:00
Problem with server directive in slrn.rc file
Author: David Mears
Date: Fri, 13 Dec 1996 00:00
Date: Fri, 13 Dec 1996 00:00
56 lines
3407 bytes
3407 bytes
Within the last couple of weeks, I've changed jobs here at work, and as a consequence, I've also changed computer systems. In the course of getting slrn back up and running again on my new system, I've run into a problem in properly processing the server directive from the slrn.rc file. I first noticed the problem with 0.9.1.1, but it also exists in 0.9.2 as well. There are two news servers here on site where I work. In my old job I was using one of them, while the new system I'm on is set up to use the other. Rather than try to convert my .newsrc file to match the different article numbers on the other news server, I figured it was easier to just continue to use the old server I was using before. So I modified the server directive in my .slrnrc file. However, I found that the server directive was being ignored by slrn. Here are additional details. We keep the name of the default news server to use in a file called /usr/local/etc/nntpserver on each system here at work. So I built slrn with NNTPSERVERFILE defined in the Makefile to point to this file. However, it appears that if this is so defined, and if the name of the news server within the slrn.rc file does not match, then the server name is used from the NNTPSERVERFILE file, and the server directive within slrn.rc is ignored. (Note, I'm also using the server directive to tell slrn to use .newsrc rather than .jnewsrc.) I then tried to run slrn with the NNTPSERVER environment variable set to the news server I wanted. Although it then used the server I wanted, it continued to ignore the server directive from slrn.rc as it tried to use .jnewsrc rather than .newsrc as directed. I also built a version of slrn which did not define NNTPSERVERFILE to any value. Running that version of slrn complained that I needed to set the NNTPSERVER environment variable and it too ignored the server directive in slrn.rc. The only way I could get slrn to process the server directive in my .slrnrc file (specifying both the server I want as well as getting slrn to use .newsrc) was to build a version with NNTPSERVERFILE defined to point to my own local file containing the same server system name as I have in the server directive in my own .slrnrc file. I would expect slrn to use any information defined on the server directive within a user's local .slrnrc to override any server info defined within a system global file as indicated by NNTPSERVERFILE. However, this doesn't appear to be the case. Can this be fixed in the next version of slrn? Please? With things as they are now, one can't seem to build a version of slrn that all can use with individuals able to specify a different server and/or .newsrc file name within their own .slrnrc files. David B. Mears Hewlett-Packard Cupertino CA mears@cup.hp.com
Re: Problem with server directive in slrn.rc file
Author: Alain Knaff.DELETE.THIS
Date: Mon, 16 Dec 1996 00:00
Date: Mon, 16 Dec 1996 00:00
25 lines
1480 bytes
1480 bytes
In <slrn5b3jvm.sgu.mears@xsvr2.cup.hp.com>, David Mears <mears@xsvr2.cup.hp.com> wrote: :I figured it :was easier to just continue to use the old server I was using before. :So I modified the server directive in my .slrnrc file. However, I :found that the server directive was being ignored by slrn. The server directive is not meant to chose a particular server. Servers are chosen either using the NNTPSERVER environmental variables or using the --nntp -h <server> command line option. The server directive only says which .newsrc file should be used for which server, in case you want read news from several servers and don't want to mix up their numbers. For example the following line tells to use file .jnewrc-hsdndev whenever using the server at hsdndev.harvard.edu : server hsdndev.harvard.edu .jnewrc-hsdndev -- Linux - Why use Windows, since there is a door? Alain
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads