Thread View: news.software.readers
10 messages
10 total messages
Started by CB
Thu, 01 May 1997 00:00
slrn & nntpserver variable
Author: CB
Date: Thu, 01 May 1997 00:00
Date: Thu, 01 May 1997 00:00
12 lines
688 bytes
688 bytes
Maybe this is a dumb question, but when I try and run slrn it tells me I have to set the environment variable NNTPSERVER. How and where do I do this? I'm running Red Hat 4.1 Linux... -- cb
Re: slrn & nntpserver variable
Author: Hrvoje Niksic
Date: Thu, 01 May 1997 00:00
Date: Thu, 01 May 1997 00:00
25 lines
1746 bytes
1746 bytes
cb@acme.com (CB) writes: > Maybe this is a dumb question, but when I try and run slrn it tells me I > have to set the environment variable NNTPSERVER. > > How and where do I do this? The `NNTPSERVER' environment variable tells newsreaders where your newsserver is. If you use sh-derived shells (like bash), put this in your ~/.profile: NNTPSERVER=yourserver.com export NNTPSERVER=yourserver Where yourserver.com is your newsserver host. Requiring `NNTPSERVER' is a normal practice among Unix newsreaders (how would the newsreader otherwise know where your newsserver is), not a Slrn's quirk. -- Hrvoje Niksic <hniksic@srce.hr> | Student at FER Zagreb, Croatia --------------------------------+-------------------------------- Ask not for whom the <CONTROL-G> tolls.
Re: slrn & nntpserver variable
Author: Bruce Schultz
Date: Fri, 02 May 1997 00:00
Date: Fri, 02 May 1997 00:00
30 lines
1859 bytes
1859 bytes
On 01 May 1997 13:04:25 +0200, Hrvoje Niksic <hniksic@srce.hr> wrote: >cb@acme.com (CB) writes: > >> Maybe this is a dumb question, but when I try and run slrn it tells me I >> have to set the environment variable NNTPSERVER. >> >> How and where do I do this? > >The `NNTPSERVER' environment variable tells newsreaders where your >newsserver is. If you use sh-derived shells (like bash), put this in >your ~/.profile: > >NNTPSERVER=yourserver.com >export NNTPSERVER=yourserver In some Linux distributions, at least, the nntpserver variable is found in /etc/nntpserver. > >Where yourserver.com is your newsserver host. Requiring `NNTPSERVER' >is a normal practice among Unix newsreaders (how would the newsreader >otherwise know where your newsserver is), not a Slrn's quirk. -- Bruce Schultz bruce45@ix.netcom.com
Re: slrn & nntpserver variable
Author: Bruce Schultz
Date: Fri, 02 May 1997 00:00
Date: Fri, 02 May 1997 00:00
30 lines
1532 bytes
1532 bytes
On 01 May 1997 13:04:25 +0200, Hrvoje Niksic <hniksic@srce.hr> wrote: >cb@acme.com (CB) writes: > >> Maybe this is a dumb question, but when I try and run slrn it tells me I >> have to set the environment variable NNTPSERVER. >> >> How and where do I do this? > >The `NNTPSERVER' environment variable tells newsreaders where your >newsserver is. If you use sh-derived shells (like bash), put this in >your ~/.profile: > >NNTPSERVER=yourserver.com >export NNTPSERVER=yourserver In some Linux distributions, at least, the nntpserver variable is found in /etc/nntpserver. > >Where yourserver.com is your newsserver host. Requiring `NNTPSERVER' >is a normal practice among Unix newsreaders (how would the newsreader >otherwise know where your newsserver is), not a Slrn's quirk. -- Bruce Schultz bruce45@ix.netcom.com
Re: slrn & nntpserver variable
Author: Manoj Kasichainula
Date: Fri, 02 May 1997 00:00
Date: Fri, 02 May 1997 00:00
18 lines
1131 bytes
1131 bytes
On Thu, 1 May 1997 16:25:00 +1000, CB <cb@acme.com> wrote: > >Maybe this is a dumb question, but when I try and run slrn it tells me I >have to set the environment variable NNTPSERVER. In Red Hat 4.1, you can place the name of the NNTP server in a file called /usr/lib/news/nntp_server, instead of setting the NNTPSERVER environment variable. -- Manoj Kasichainula - manojk at io.com - http://www.io.com/~manojk/ "Would you die for The One?" "I wouldn't get pizza for the one. That ain't my job." - J. Michael Straczynski
Re: slrn & nntpserver variable
Author: Manoj Kasichainula
Date: Fri, 02 May 1997 00:00
Date: Fri, 02 May 1997 00:00
18 lines
1371 bytes
1371 bytes
On Thu, 1 May 1997 16:25:00 +1000, CB <cb@acme.com> wrote: > >Maybe this is a dumb question, but when I try and run slrn it tells me I >have to set the environment variable NNTPSERVER. In Red Hat 4.1, you can place the name of the NNTP server in a file called /usr/lib/news/nntp_server, instead of setting the NNTPSERVER environment variable. -- Manoj Kasichainula - manojk at io.com - http://www.io.com/~manojk/ "Would you die for The One?" "I wouldn't get pizza for the one. That ain't my job." - J. Michael Straczynski
Re: slrn & nntpserver variable
Author: Hrvoje Niksic
Date: Sat, 03 May 1997 00:00
Date: Sat, 03 May 1997 00:00
23 lines
1551 bytes
1551 bytes
hezu@iki.fi (Heikki Kantola) writes:
> >NNTPSERVER=yourserver.com
> >export NNTPSERVER=yourserver
> ^^^^^^^^^^^
> That's unnecessary repetition, (...)
Actually, it's a typo. I meant:
NNTPSERVER=yourserver.com
export NNTPSERVER
...so that it works in /bin/sh -- e.g. you can set it up in a system
script.
--
Hrvoje Niksic <hniksic@srce.hr> | Student at FER Zagreb, Croatia
--------------------------------+--------------------------------
main(){printf(&unix["\021%six\012\0"],(unix)["have"]+"fun"-0x60);}
Re: slrn & nntpserver variable
Author: Heikki Kantola
Date: Sat, 03 May 1997 00:00
Date: Sat, 03 May 1997 00:00
32 lines
1873 bytes
1873 bytes
Hrvoje Niksic <hniksic@srce.hr> informed
news.software.readers with the following:
>cb@acme.com (CB) writes:
>> Maybe this is a dumb question, but when I try and run slrn it tells me I
>> have to set the environment variable NNTPSERVER.
>>
>> How and where do I do this?
>
>The `NNTPSERVER' environment variable tells newsreaders where your
>newsserver is. If you use sh-derived shells (like bash), put this in
>your ~/.profile:
>
>NNTPSERVER=yourserver.com
>export NNTPSERVER=yourserver
^^^^^^^^^^^
That's unnecessary repetition, if you define the variable as in the
last line (that method doesn't work in /bin/sh, although I doubt that
many use that as interactive shell unless running some free UNIX-like
OS where /bin/sh is often actually bash), you can forget the first line
or then remove the value in the second one.
And then of course, if you're using [t]csh the syntax is different:
setenv NNTPSERVER news.whatever.com
--
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 & nntpserver variable
Author: David M. Cook
Date: Sat, 03 May 1997 00:00
Date: Sat, 03 May 1997 00:00
15 lines
958 bytes
958 bytes
On Thu, 1 May 1997 16:25:00 +1000, CB <cb@acme.com> wrote: >Maybe this is a dumb question, but when I try and run slrn it tells me I >have to set the environment variable NNTPSERVER. In addition to setting the NNTPSERVER variable, you can also start slrn with the -h flag $ slrn -h nntp.myisp.net Dave Cook
Re: slrn & nntpserver variable
Author: rod
Date: Sun, 04 May 1997 00:00
Date: Sun, 04 May 1997 00:00
40 lines
2117 bytes
2117 bytes
Manoj Kasichainula, manojk+usenet@io.com journeyed into another dimension with: > >On Thu, 1 May 1997 16:25:00 +1000, CB <cb@acme.com> wrote: >> >>Maybe this is a dumb question, but when I try and run slrn it tells me I >>have to set the environment variable NNTPSERVER. > >In Red Hat 4.1, you can place the name of the NNTP server in a file >called /usr/lib/news/nntp_server, instead of setting the NNTPSERVER >environment variable. It hardley matters what system keeps it where. The variable is either in the environment or it isn't and either slrn can find the value of NNTPSERVER or it can't. Who puts it in what file only confuses the issue. So the answer to his question, which seems to be setting the environment variable is to first see what shell he's using. It's either going to be done by: export NNTPSERVER=my.nsewserver.com or when using inferior shells ;) by: setenv NNTPSERVER my.newserver.com and then man my_shell to find out more. After that, then he can worry about being clever and adding something like: export NNTPSERVER=`/usr/lib/news/nntp_server` If the system already gets it from there, that's what it does anyway, so he might as well understand what's happening so everyother environment variable isn't a mystery with a magic un*x dependent answer, when in fact, it is not. The answer depends more on the shell than it does on the brand of un*x.
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