🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
14 messages
14 total messages Started by Ken Moffat Sat, 22 Apr 2000 00:00
slrn multiple servers
#60822
Author: Ken Moffat
Date: Sat, 22 Apr 2000 00:00
13 lines
1050 bytes
I am using slrn (older version) on Caldera 2.3, and am wondering
how to use multiple servers. I listed the servers in the slrn.rc file,
but I seem to be forced to use a -h and -f commandline switch to
access the different servers. When I just use the command 'slrn' I 
get only my default server. Can I add servers to the SMTPSERVER 
variable?  

-- 
Ken Moffat
kmoffat@halcyon.com


Re: slrn multiple servers
#60819
Author: Ken Moffat
Date: Sat, 22 Apr 2000 00:00
14 lines
1033 bytes
On Sat, 22 Apr 2000 14:16:51 -0500, Adam Bailey <adamb@lull.org> wrote:
>kmoffat@halcyon.com wrote:
>
>Use an alias. slrn isn't psychic, it needs to be told in the command 
>line which newsrc file to use at the very least.

OK.

-- 
Ken Moffat
kmoffat@halcyon.com


Re: slrn multiple servers
#60830
Author: Adam Bailey
Date: Sat, 22 Apr 2000 00:00
17 lines
1488 bytes
kmoffat@halcyon.com wrote:

> I am using slrn (older version) on Caldera 2.3, and am wondering
> how to use multiple servers. I listed the servers in the slrn.rc file,
> but I seem to be forced to use a -h and -f commandline switch to
> access the different servers. When I just use the command 'slrn' I 
> get only my default server.

Use an alias. slrn isn't psychic, it needs to be told in the command 
line which newsrc file to use at the very least.

-- 
Adam Bailey    | Chicago, Illinois
adamb@lull.org | Finger/Web for PGP
adamkb@aol.com | http://www.lull.org/adam/

Re: slrn multiple servers
#60866
Author: billy chan
Date: Sun, 23 Apr 2000 00:00
51 lines
2120 bytes
22 Apr 2000 18:31:35 GMT, <kmoffat@halcyon.com> wrote:
>I am using slrn (older version) on Caldera 2.3, and am wondering
>how to use multiple servers. I listed the servers in the slrn.rc file,
>but I seem to be forced to use a -h and -f commandline switch to
>access the different servers. When I just use the command 'slrn' I 
>get only my default server. Can I add servers to the SMTPSERVER 
>variable?  

I have a separate .slrnrc, slrnpull.conf and .newsrc for each of the
news servers. Say I use three servers, news1, news2, news3.

directory structure:
/var/spool/news1
/var/spool/news2
/var/spool/news3

eg, in respect of news1
/var/spool/news1/data/
/var/spool/news1/out.going/
/var/spool/news1/news/
/var/spool/news1/slrnpull.conf

.slrnrc's and .newsrc's
$HOME/.slrnrc.news1
$HOME/.slrnrc.news2
$HOME/.slrnrc.news3
$HOME/.newsrc.news1
$HOME/.newsrc.news2
$HOME/.newsrc.news3

all .slrnrc's are identical except the few settings:

set spool_inn_root 	"/var/spool/news1"
set spool_root 		"/var/spool/news1/news"
set spool_nov_root 	"/var/spool/news1/news"

the similar for news2, news3, ...

pull news:
slrnpull -d /var/spool/news1 -h news.xxx.com 
slrnpull -d /var/spool/news2 -h news.xxx.com
slrnpull -d /var/spool/news3 -h news.xxx.com

read news:
slrn -i .slrnrc.news1 -f .newsrc.news1
slrn -i .slrnrc.news2 -f .newsrc.news2
slrn -i .slrnrc.news3 -f .newsrc.news3

If you come up with better ideas, share with us.

Re: slrn multiple servers
#60883
Author: Ken Moffat
Date: Mon, 24 Apr 2000 00:00
13 lines
1243 bytes
On 24 Apr 2000 19:37:34 GMT, Heikki Kantola <hezu@iki.fi> wrote:
>-- 
>L�hett�m�ll� mainoksia tai muuta asiatonta s�hk�postia yll� olevaan
>osoitteeseen sitoudut maksamaan oikolukupalvelusta FIM500 alkavalta
>tunnilta.

Would you like to translate this for us illiterata?
-- 
Ken Moffat
kmoffat@halcyon.com


Re: slrn multiple servers
#60892
Author: Heikki Kantola
Date: Mon, 24 Apr 2000 00:00
38 lines
2160 bytes
John E. Davis <davis@space.mit.edu> informed
news.software.readers with the following:
>On 23 Apr 2000 19:00:54 GMT, billy chan <bilchan@bigfoot.com>
>wrote:
>>read news:
>>slrn -i .slrnrc.news1 -f .newsrc.news1
>>slrn -i .slrnrc.news2 -f .newsrc.news2
>>slrn -i .slrnrc.news3 -f .newsrc.news3
>>
>>If you come up with better ideas, share with us.
>
>You could use one .slrnrc file with something like:
>#v+
>    server "news1.bigfoot.com" ".newsrc.news1"
>    server "news2.bigfoot.com" ".newsrc.news2"
>    server "news3.bigfoot.com" ".newsrc.news3"
>    #ifdef NEWS1
>       % news1 settings
>    #endif
>    #ifdef NEWS2
>       % news2 settings
>    #endif
>    #ifdef NEWS3
>       % news3 settings
>    #endif
>#v-
>and then to use news2 settings, run slrn via `slrn -DNEWS2'.

You could also use NNTPSERVER enviroment variable to select the server
and then change the #ifdefs into "#if$NNTPSERVER news1" and so on. 

-- 
Heikki "Hezu" Kantola, <Heikki.Kantola@IKI.FI>
L�hett�m�ll� mainoksia tai muuta asiatonta s�hk�postia yll� olevaan
osoitteeseen sitoudut maksamaan oikolukupalvelusta FIM500 alkavalta
tunnilta.

Re: slrn multiple servers
#60899
Author: John E. Davis
Date: Mon, 24 Apr 2000 00:00
31 lines
1405 bytes
On 23 Apr 2000 19:00:54 GMT, billy chan <bilchan@bigfoot.com>
wrote:
>read news:
>slrn -i .slrnrc.news1 -f .newsrc.news1
>slrn -i .slrnrc.news2 -f .newsrc.news2
>slrn -i .slrnrc.news3 -f .newsrc.news3
>
>If you come up with better ideas, share with us.

You could use one .slrnrc file with something like:
#v+
    server "news1.bigfoot.com" ".newsrc.news1"
    server "news2.bigfoot.com" ".newsrc.news2"
    server "news3.bigfoot.com" ".newsrc.news3"
    #ifdef NEWS1
       % news1 settings
    #endif
    #ifdef NEWS2
       % news2 settings
    #endif
    #ifdef NEWS3
       % news3 settings
    #endif
#v-
and then to use news2 settings, run slrn via `slrn -DNEWS2'.

--John

    

Re: slrn multiple servers
#60952
Author: John E. Davis
Date: Tue, 25 Apr 2000 00:00
62 lines
2299 bytes
On 25 Apr 2000 10:34:39 GMT, billy chan <bilchan@bigfoot.com>
wrote:
>Something I don't understand. How does slrn know which
>newsrc to map to if I merely define NEWS2? Will slrn simply use the
>second entry in the map if I define NEWS2? Thanks!

slrn uses the `server' commands to map servers to newsrc files.  If
you set your NNTPSERVER environment varable to the server that you
want, then you can let slrn select the correct newsrc file using the
server command.  Another user made a useful suggestion about using,
e.g.,
#v+
   #if$NNTPSERVER news1.bigfoot.com
     %news1 settings
   #endif
   #if$NNTPSERVER news2.bigfoot.com
     %news2 settings
   #endif
#v-
There are other possibilities as well.  Here is one for those who like
macros.  Put the line:
#v+
   interpret "server.sl"
#v-
at the _top_ of your .slrnrc file.  Then save the following to a file
called server.sl:
#v+
% server.sl

static variable servers = 
  ["news1.bigfoot.com",
   "news2.bigfoot.com",
   "news3.bigfoot.com"];

static variable i, ch;

do
{
   () = fprintf (stdout, "Available servers:\n\n");

   for (i = 0; i < length (servers); i++)
     () = fprintf (stdout, "%d. %s\n", i, servers[i]);
   
   () = fprintf (stdout, "\nChoose server:");
   () = fflush(stdout);
   if (-1 == fgets (&ch, stdin))
     ch = "0";
   ch = strtrim (ch);
   if (ch == "") 
     ch = "0";
     
   ch = integer (ch);
}
while ((ch < 0) or (ch >= length (servers)));

putenv (strcat ("NNTPSERVER=", servers[ch]));

#v-

--John

Re: slrn multiple servers
#60955
Author: Dawn Owens-Nicholson
Date: Tue, 25 Apr 2000 00:00
18 lines
1602 bytes
billy chan wrote:
> Something I don't understand. How does slrn know which
> newsrc to map to if I merely define NEWS2? Will slrn simply use the
> second entry in the map if I define NEWS2? Thanks!

The "server" lines in your slrnrc determine what newsrc goes with what
server.  In the following slrnrc snippet, when your NNTPSERVER is set to
news1.bigfoot.com, you will use .newsrc.news1:

    server "news1.bigfoot.com" ".newsrc.news1"
    server "news2.bigfoot.com" ".newsrc.news2"
    server "news3.bigfoot.com" ".newsrc.news3"

The rest of the slrnrc example JED gave you doesn't enter into determining
the newsrc.  The preprocessor blocks (i.e., NEWS1, NEWS2, NEWS3) branch for
the remaining slrnrc settings.

Re: slrn multiple servers
#60958
Author: billy chan
Date: Tue, 25 Apr 2000 00:00
32 lines
1675 bytes
24 Apr 2000 01:31:36 GMT, <davis@space.mit.edu> wrote:
>On 23 Apr 2000 19:00:54 GMT, billy chan <bilchan@bigfoot.com>
>>read news:
>>slrn -i .slrnrc.news1 -f .newsrc.news1
>>slrn -i .slrnrc.news2 -f .newsrc.news2
>>slrn -i .slrnrc.news3 -f .newsrc.news3
>>
>You could use one .slrnrc file with something like:
>#v+
>    server "news1.bigfoot.com" ".newsrc.news1"
>    server "news2.bigfoot.com" ".newsrc.news2"
>    server "news3.bigfoot.com" ".newsrc.news3"
>    #ifdef NEWS1
>       % news1 settings
>    #endif
>    #ifdef NEWS2
>       % news2 settings
>    #endif
>    #ifdef NEWS3
>       % news3 settings
>    #endif
>#v-
>and then to use news2 settings, run slrn via `slrn -DNEWS2'.

Thanks for this pointer. That makes managing .slrnrc much more
convenient. 

Something I don't understand. How does slrn know which
newsrc to map to if I merely define NEWS2? Will slrn simply use the
second entry in the map if I define NEWS2? Thanks!

Re: slrn multiple servers
#61052
Author: root
Date: Fri, 28 Apr 2000 00:00
18 lines
1367 bytes
In article <956510227@bc.org>, billy chan wrote:
>
>read news:
>slrn -i .slrnrc.news1 -f .newsrc.news1
>slrn -i .slrnrc.news2 -f .newsrc.news2
>slrn -i .slrnrc.news3 -f .newsrc.news3
>
>If you come up with better ideas, share with us.

   You could try running your own server that automatically feeds from 
   all three sites and stores it as a single spool.  DNEWS (from Netwin
   http://www.netwinsite.com/ ) is easy to use and has a dynamic sucking
   feed that allows you to start spooling a group simply by starting to 
   read it.  I've used it on a number of servers and couldn't be happier
   
   andrew.  (andrew.brennan@drexel.edu)

Re: slrn multiple servers
#61068
Author: billy chan
Date: Sat, 29 Apr 2000 00:00
29 lines
1597 bytes
25 Apr 2000 20:12:21 GMT, <davis@space.mit.edu> wrote:
>slrn uses the `server' commands to map servers to newsrc files.  If
>you set your NNTPSERVER environment varable to the server that you
>want, then you can let slrn select the correct newsrc file using the
>server command.  Another user made a useful suggestion about using,
>e.g.,
>#v+
>   #if$NNTPSERVER news1.bigfoot.com
>     %news1 settings
>   #endif
>   #if$NNTPSERVER news2.bigfoot.com
>     %news2 settings
>   #endif
>#v-
I understand now!

>There are other possibilities as well.  Here is one for those who like
>macros.  Put the line:
>#v+
>   interpret "server.sl"
>#v-
>at the _top_ of your .slrnrc file.  Then save the following to a file
>called server.sl:
>#v+
>% server.sl

It's very nice to have list to choose a server to go. Thanks!

Re: slrn multiple servers
#61070
Author: billy chan
Date: Sat, 29 Apr 2000 00:00
12 lines
1198 bytes
Tue, 25 Apr 2000 19:38:07 GMT, <bluemoon@ux6.cso.uiuc.edu> wrote:
>The "server" lines in your slrnrc determine what newsrc goes with what
>server.  In the following slrnrc snippet, when your NNTPSERVER is set to
>news1.bigfoot.com, you will use .newsrc.news1:
>
>    server "news1.bigfoot.com" ".newsrc.news1"
>    server "news2.bigfoot.com" ".newsrc.news2"
>    server "news3.bigfoot.com" ".newsrc.news3"

Got it! Thanks.

Re: slrn multiple servers
#61073
Author: billy chan
Date: Sat, 29 Apr 2000 00:00
19 lines
1475 bytes
28 Apr 2000 16:53:27 -0400, <root@slate.irt.drexel.edu> wrote:
>In article <956510227@bc.org>, billy chan wrote:
>>
>>read news:
>>slrn -i .slrnrc.news1 -f .newsrc.news1
>>slrn -i .slrnrc.news2 -f .newsrc.news2
>>slrn -i .slrnrc.news3 -f .newsrc.news3
>>
>>If you come up with better ideas, share with us.
>
>   You could try running your own server that automatically feeds from 
>   all three sites and stores it as a single spool.  DNEWS (from Netwin
>   http://www.netwinsite.com/ ) is easy to use and has a dynamic sucking
>   feed that allows you to start spooling a group simply by starting to 
>   read it.  I've used it on a number of servers and couldn't be happier

Interesting! Does it also do news filtering while pulling news articles?

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