Thread View: news.software.readers
3 messages
3 total messages
Started by Anthony Choi
Wed, 30 Jun 1993 10:44
tin with two NNTPSERVER?
Author: Anthony Choi
Date: Wed, 30 Jun 1993 10:44
Date: Wed, 30 Jun 1993 10:44
11 lines
1173 bytes
1173 bytes
anyone know how can I do it? thanks -- +*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+ | _--_|\ | name - Anthony Choi | | / \ | position - student | | \_.--\_* <-- school - University of New South Wales | | v | e-mail - anc@newt.phys.unsw.edu.au | +*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+
Re: tin with two NNTPSERVER?
Author: Tom J Parry
Date: Wed, 30 Jun 1993 12:25
Date: Wed, 30 Jun 1993 12:25
18 lines
1497 bytes
1497 bytes
Anthony Choi (anc@newt.phys.unsw.edu.au) wrote: > anyone know how can I do it? > thanks What do you mean? Do you mean at the same time? I don't think it's possible or practicle. I currently read news locally and from 3 NNTP servers (1 of them being the local machine). If tin is compiled NNTP_ABLE then 'tin' will read locally and (setenv NNTPSERVER server.site.dom; tin -r) will read form that site. Be careful with the indexes though. Either never read the same group from two different servers or use the -I option to use different directories for your indexes. -- Tom J Parry. Your reality is a figment of my imagination.
Re: tin with two NNTPSERVER?
Author: Sergio L Aponte
Date: Wed, 30 Jun 1993 17:01
Date: Wed, 30 Jun 1993 17:01
87 lines
3139 bytes
3139 bytes
Ever since I have used Tin I do this, and the best way I found is
with a shell script which switches my environment to the proper server
setup.
Under my home dir a have two dirs, .server1 and .server2. By setting
my Tin variables I have separate indeces, newsrc, tinrc, etc...
Here is the script. I will try to add comments.
I call it tinsh.
================================================================================
#!/bin/sh
#
# tinsh : Bourne shell script to fire up tin against either server1,
# server2 or server3, our NNTP hosts.
if [ "$1" = "" ] # No host specified
then
echo ""
echo "Please specify host...server1, server2 or server3"
echo ""
sleep 3
exit 1
fi
TINDIR="$HOME/.$1"; export TINDIR
if [ ! -d $TINDIR ]
then
mkdir $TINDIR
fi
case $1 in
server1 )
DISTRIBUTION="net"; export DISTRIBUTION
NNTPSERVER="server1"; export NNTPSERVER
;;
server2 )
DISTRIBUTION="local"; export DISTRIBUTION
NNTPSERVER="server2"; export NNTPSERVER
;;
server3 )
DISTRIBUTION="local"; export DISTRIBUTION
NNTPSERVER="server3"; export NNTPSERVER
;;
*)
echo ""
echo "Host unknown...use server1, server2 or server3 ..."
echo ""
exit 1
;;
esac
# I have two different "builds" of Tin with different options. This allows me
# to use the TINEXEC variable to control which one I use. If not set, use tin
if [ "$TINEXEC" = "" ]
then
# Use default Tin executable
TEXEC=tin; export TEXEC
else
TEXEC=$TINEXEC; export TEXEC
fi
# If MAILER is not set, set a MAILER. Otherwise, assume user knows what is doing
if [ "$MAILER" = "" ]
then
# Set MAILER so that Subject: shows
MAILER=/usr/ucb/Mail; export MAILER
fi
exec $TEXEC -r -m $HOME/mail -f $HOME/.newsrc$1
================================================================================
Is simple, could possibly be better, but has done the job since
Tin 1.1 PL1...
--
Sergio L. Aponte
Technical Services Manager
Latin America Operations
===============================================================
Sergio L. Aponte, SMTS @ Ingres, an ASK Company
Internet : sergio@coqui.ingres.com
UUCP : {sun,mtxinu,pyramid,pacbell}!ingres!coqui!sergio
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