Thread View: news.software.readers
7 messages
7 total messages
Started by salasin
Mon, 02 May 1994 23:49
A real dumb question
Author: salasin
Date: Mon, 02 May 1994 23:49
Date: Mon, 02 May 1994 23:49
21 lines
1317 bytes
1317 bytes
I'm sorry to bother you folks with such a dumb question, but the version of rn I have doesn't seem to come with any documentation.... How to point rn toward a given newserver? Do you give rn an argument (rn rs6a.wln.com) or is it supposed to read /etc/nntpserver, or is there supposed to be a line in /usr/local/lib/rn/INIT (which is currently mostly empty), and if so, what would that line, or switch, say. I doubt this is an interesting enough question to merit a response on the newsgroup. Let's save some bandwidth by responding (please) to salasin@wln.com. Thank you in advance for your time and trouble in this matter, trivial as it probably is. Best, salasin@wln.com
Re: A real dumb question
Author: L. E. de Rivaud
Date: Tue, 03 May 1994 14:54
Date: Tue, 03 May 1994 14:54
32 lines
2215 bytes
2215 bytes
salasin@rs6a.wln.com wrote: > I'm sorry to bother you folks with such a dumb question, but > the version of rn I have doesn't seem to come with any > documentation.... Most programs come with documentation, or "manual pages." Typing "man rn" *should* give you the manual pages. If it does not then you need to tell your sys admin. On my system typing "man elm" does not work, although it used to. Our sys admin told me that he has "misplaced the manual pages for elm." Strange but true. > How to point rn toward a given newserver? Do you give > rn an argument (rn rs6a.wln.com) or is it supposed to > read /etc/nntpserver, or is there supposed to be a line > in /usr/local/lib/rn/INIT (which is currently mostly > empty), and if so, what would that line, or switch, > say. I am sorry that I don't have an answer to this. I don't use rn, but the first part of your message could apply to other people in other situations, (like myself with elm.) > I doubt this is an interesting enough question to merit > a response on the newsgroup. Let's save some bandwidth > by responding (please) to salasin@wln.com. I thought it was interesting enough. I have replied here because in the many months I have been reading this group I have learned alot by other peoples questions and answers. I hope more people than you learn something by my answer, that is one of the good things about newsgroups. Good luck.
Re: A real dumb question
Author: Sridhar Venkataraman
Date: Tue, 03 May 1994 16:18
Date: Tue, 03 May 1994 16:18
21 lines
1601 bytes
1601 bytes
salasin@rs6a.wln.com () writes: | How to point rn toward a given newserver? Do you give | rn an argument (rn rs6a.wln.com) or is it supposed to | read /etc/nntpserver, or is there supposed to be a line | in /usr/local/lib/rn/INIT (which is currently mostly | empty), and if so, what would that line, or switch, | say. Upgrade to trn which is much better than rn and also for the fact that trn is actively maintained compared to rn which I am not sure is being maintained actively anymore. But to solve your problem... There is an environmental variable named NNTPSERVER (in versions of rn that I used) which when set will allow you to read from another server. setenv NNTPSERVER other.news.server should do it. Sridhar.
How to use several NNTP servers (Re: A real dumb question)
Author: Sami K|ykk{
Date: Fri, 06 May 1994 10:02
Date: Fri, 06 May 1994 10:02
57 lines
3170 bytes
3170 bytes
In article <sridhar.03May94.091858@homecheese.eas.asu.edu>, Sridhar Venkatarama wrote:
> There is an environmental variable named NNTPSERVER (in versions of rn
> that I used) which when set will allow you to read from another server.
>
> setenv NNTPSERVER other.news.server
>
> should do it.
When I read the original question again I realized that this answer was
off the topic. However, I think that this information will come handy to
those who are thinking of reading news from several servers. This kind
of article would have saved me from rebuilding my .newsrc many years
ago.
Therefore, I'm going to post it anyway.
* * *
Please note that different NNTP servers use different article numbering.
If you just change the NNTPSERVER variable and start the newsreader, you
will be in trouble. The newsreader will update the .newsrc file
according to a new numbering system. This means that in some newsgroups
you won't see new articles for many days (or months!) and in some other
newsgroups you will see articles you have already read. Also, the other
server could carry a different set of newsgroups which could make rn
mark some newsgroups as bogus. When you start using your regular server
again, the same problems are back.
You should have a different .newsrc file for every NNTP server you are
going to use. When you start using a new server, you should first create
a subdirectory where you will keep the .newsrc file for that server:
mkdir .other.dotdir
For reading news from the other server, you should use a script like
this:
#!/bin/csh
setenv NNTPSERVER other.news.server
setenv DOTDIR .other.dotdir
rn
The DOTDIR variable will tell the rn to use the .newsrc file in
the .other.dotdir subdirectory.
The .newsrc file in your home directory will be used when you are using
your regular NNTP server with rn.
The above script works with rn and trn (for trn, just change the rn to
trn). For other newsreaders you should check the manual page for
instructions how to define a different .newsrc file when using another
server.
--
Sami K|ykk{ +----------------------------+
samik@kaktus.uta.fi ! couch potato !
http://www.uta.fi/~samik/samik.html +----------------------------+
Re: How to use several NNTP servers (Re: A real dumb question)
Author: Sridhar Venkataraman
Date: Sat, 07 May 1994 12:18
Date: Sat, 07 May 1994 12:18
24 lines
1766 bytes
1766 bytes
samik@kaktus.uta.fi writes: | Sridhar Venkataraman wrote: | > There is an environmental variable named NNTPSERVER (in versions of rn | > that I used) which when set will allow you to read from another server. | | When I read the original question again I realized that this answer was | off the topic. However, I think that this information will come handy to | those who are thinking of reading news from several servers. This kind | of article would have saved me from rebuilding my .newsrc many years | ago. [A better solution using DOTDIR in conjunction with NNTPSERVER deleted] Another thing to remember is that, the support for NEWSRC is going away in trn 3.5 (whenever Wayne releases it). Despite all the warnings that Wayne posted here, I hadn't thought much on it and got bitten (mildly :) when I compiled the beta copy with the support removed. So if anyone out there is using NEWSRC, make the change to DOTDIR. You won't feel sorry later. Look into any scripts using that which you haven't touched for 1-2 years. :-) Sridhar.
Re: How to use several NNTP servers (Re: A real
Author: Leif Johansson
Date: Thu, 12 May 1994 12:02
Date: Thu, 12 May 1994 12:02
226 lines
6600 bytes
6600 bytes
In article L6NojK54O194058yn@uta.fi, samik@uta.fi (Sami K|ykk{) writes:
>
>You should have a different .newsrc file for every NNTP server you are
>going to use.
I have a script that does this and keeps track of what newsreader to use (You
might not whant to use xvnews when phoning in...) It goes something like this:
Please note that this is highly experimental. The script does no locking on files
and is therefore a bit unsafe. I have used it for a couple of weeks now with no
sideeffects (If you use only this - don't start a newsreader separately!). When
I get the time I will rewrite this in perl with a bit more safety and bells&whistles.
Also: don't quit using ^C or ^Z. The script does a bit of cleaning up after you
exit the newsreader....
NOTE: I don't support this in any way. Use it at your own risk. Read the script
to get documentation. :-)
There are a two config files: $HOME/.vnrc and $HOME/.nntphosts. I include
samples:
.vnrc:
_______________ CUT _________________
timeout 10
sun4c.tty /usr/local/bin/tin -r
sun4c.x xvnews
sun4m.tty /usr/local/bin/tin -r
sun4m.x xvnews
sun4d.tty /usr/local/bin/tin -r
sun4d.x xvnews
alpha.tty tin -r
alpha.x xterm -e 'tin -r'
_______________ CUT __________________
.nntphosts:
_______________CUT ____________________
news.kth.se
news.matematik.su.se
news.su.se default
______________ CUT ______________________
vn:
______________ CUT _____________________
#!/bin/sh
#
# Virtual newsreader. Adapts to the situation at hand.
#
# Set up defaults if no local config files exists
if [ -f $HOME/.nntphosts ]; then
NNTPHOSTS=$HOME/.nntphosts
else
NNTPHOSTS=/usr/local/etc/nntphosts
fi
export NNTPHOSTS
if [ -f $HOME/.vnrc ]; then
VNRC=$HOME/.vnrc
else
VNRC=/usr/local/etc/vnrc
fi
export VNRC
NEWSRC=$HOME/.newsrc
export NEWSRC
# I don't check if the actual port 119 has anything on it.
# This will be in the next perlified version. Thus the following:
PING="/usr/etc/ping"
export PING
#
# Change nothing below this line
#
if [ ! -f $NNTPHOSTS ]; then
echo "No .nntphosts file"
exit 1
else
DEFNNTP=`grep default $NNTPHOSTS | awk ' { print $1 } '`
export DEFNNTP
fi
if [ $# -gt 0 ]; then
case $1 in
'-i')
DEFNNTP=""
export DEFNNTP
;;
'-v')
echo "vn version 0.0000001alfa (c) Leif Johansson Distibute Freely"
exit 0
;;
esac
fi
if [ ! -f $VNRC ]; then
TIMEOUT=20
export TIMEOUT
TTYN="tin -r"
export TTYN
XN="xvnews"
export XN
else
TIMEOUT=`grep timeout $VNRC | awk ' { print $2 } '`
export TIMEOUT
MACH=`uname -m`
export MACH
if [ x`grep $MACH.tty $VNRC | awk ' { print $1 } '` != x ]; then
TTYN=`grep $MACH.tty $VNRC | awk ' { for (i = 2; i <= NF; ++i) print $i } '`
export TTYN
else
echo "Warning: No tty newsreader for this architechture: " $MACH
fi
if [ x`grep $MACH.x $VNRC | awk ' { print $1 } '` != x ]; then
XN=`grep $MACH.x $VNRC | awk ' { for (i = 2; i <= NF; ++i) print $i } '`
export XN
else
echo "Warning: No X newsreader for this architechture: " $MACH
fi
fi
if [ ! -x $PING ]; then
echo $PING "not executable"
exit 1
fi
#
# Enough startup! Here we go!
#
for x in `cat $NNTPHOSTS | awk ' { print $1 } '`
do
if [ ! -f $NEWSRC.$x ]; then
touch $NEWSRC.$x
echo "Making empty" .newsrc.$x " file"
fi
done
if [ x$DEFNNTP != x ]; then
if [ x`$PING $DEFNNTP $TIMEOUT | awk ' { print $3 } '` = xalive ]; then
echo "Your favorite nntpserver is up and kicking."
NNTPSERVER=$DEFNNTP
export NNTPSERVER
if [ -f $NEWSRC.$NNTPSERVER ]; then
cp $NEWSRC.$NNTPSERVER $NEWSRC
else
echo "No .newsrc file for this host."
echo "Creating an empty one...."
touch $NEWSRC.$NNTPSERVER
cp $NEWSRC.$NNTPSERVER $NEWSRC
fi;
if [ x$DISPLAY = x ]; then
$TTYN
else
$XN
fi;
cp $NEWSRC $NEWSRC.$NNTPSERVER
exit 0
else
echo "Your favorite nntpserver doesn't answer ..."
echo "Trying other nntpservers ..."
fi
fi
echo "Alive nntp hosts known to me are ..."
while true
do
for x in `cat $NNTPHOSTS | awk ' { print $1 } '`
do
if [ x`$PING $x $TIMEOUT | awk ' { print $3 } '` = xalive ]; then
echo $x
echo 'What now [(c)onnect,(n)next in list,(q)uit]?' | tr -d '\012'
read reply
reply=`echo "${reply}" | tr -d ' \011'`
case "X${reply}" in
X[cC]*)
NNTPSERVER=$x
export NNTPSERVER
if [ -f $NEWSRC.$NNTPSERVER ]; then
cp $NEWSRC.$NNTPSERVER $NEWSRC
else
echo "No .newsrc file for this host."
echo "Creating an empty one...."
touch $NEWSRC.$NNTPSERVER
cp $NEWSRC.$NNTPSERVER $NEWSRC
fi;
if [ x$DISPLAY = x ]; then
$TTYN
else
$XN
fi
cp $NEWSRC $NEWSRC.$NNTPSERVER
exit 0
;;
X[nN]*)
echo "Trying next..."
;;
X[qQ]*)
echo "See you later."
exit 0
;;
esac
fi
done
echo "No more nntphosts in " $NNTPHOSTS " ."
echo "Starting over..."
done
fi
_________________CUT _______________________
Leif Johansson Phone: +46 8 164541
Department of Mathematics Fax : +46 8 6126717
Stockholm University email: leifj@matematik.su.se
<This space is left blank for quotational and disclamatory purposes.>
Re: How to use several NNTP servers (Re: A real dumb question)
Author: Greg Berigan
Date: Sun, 15 May 1994 20:07
Date: Sun, 15 May 1994 20:07
47 lines
2943 bytes
2943 bytes
pete@minster.york.ac.uk (Pete Fenelon) writes:
>@uta.fi (Sami K|ykk{) wrote:
>>You should have a different .newsrc file for every NNTP server you are
>>going to use. When you start using a new server, you should first create
>>a subdirectory where you will keep the .newsrc file for that server:
Or just a new .newsrc like ".newsrc.other". That is what I do. Tin can
use a filename other than ".newsrc", and it can be provided on the
command line. You can even set up alternate .index directories.
>I'm thinking along the lines of hacking something (probably tin) so that it
>``knows'' which NNTP server to get particular groups from.
>
>This will probably mean an extra dot-file saying something like:
>
>alt.silly.group.name: someserver.somewhere.edu
>rec.food.sex: otherplace.foo.com
>comp.protocols.vomit: bletch.ac.uk
>
>Thoughts, anyone? -- does this sound like a reasonable idea?
I've been thinking about this too. A server management system built
into tin would be most desireable.
I've been thinking of another selection menu which lists all the servers
you've told it about. You select the server, a connection is opened,
and you go about reading the groups. The appropriate .newsrc.filename
is contained in a .tinservrc file which holds all the equates between
server and newsrc file. Reading from local spool will have the default
.newsrc file, and other newsrcs will be defaultly named .newsrc.<server-
name>.
Unfortunately I only have the conception of the system, and no code
written at all.
Your system though would have the advantage of having all newsgroups
available without switching servers, but the disadvantage of having to
keep all the server connections active all the time. There would also
be extra work to make sure crossposted articles are marked read only
from the same server (different servers have different article numbers,
and searching for article-id might be computationally expensive).
--
gberigan@cse.unl.edu (Greg Berigan)
Be articulate! Your new patience will not show up immediately.
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