home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / alt / comp / acadfre / talk / 2544 < prev    next >
Encoding:
Text File  |  1992-08-12  |  1.9 KB  |  49 lines

  1. Newsgroups: alt.comp.acad-freedom.talk
  2. Path: sparky!uunet!usc!sol.ctr.columbia.edu!eff!eff-gate!usenet
  3. From: kadie@cs.uiuc.edu (Carl M. Kadie)
  4. Subject: [news.future]  Re: reading news from multiple NNTP servers.
  5. Message-ID: <9208121935.AA23091@herodotus.cs.uiuc.edu>
  6. Originator: daemon@eff.org
  7. Sender: kadie@cs.uiuc.edu
  8. Nntp-Posting-Host: eff.org
  9. Organization: EFF mail-news gateway
  10. Date: Wed, 12 Aug 1992 09:35:43 GMT
  11. Approved: usenet@eff.org
  12. Lines: 35
  13.  
  14.  
  15. From: markb@spock.dis.cccd.edu (Mark Bixby)
  16. Newsgroups: news.future
  17. Subject:  Re: reading news from multiple NNTP servers.
  18. Message-ID: <BsvsGv.J29@spock.dis.cccd.edu>
  19. Date: 12 Aug 92 17:26:54 GMT
  20.  
  21. The NNTP version of trn can do this, via the NNTPSERVER env variable.  I've
  22. built a script which allows flexible access to multiple servers.  It will
  23. store the required "dot" files (.newsrc, .rnlast, .rnsoft) in a $HOME
  24. directory of .trrn-{nntpserver}-{user $NAME}.  You need to keep separate
  25. .newsrc files for each NNTP server or else trn will get really confused.
  26. Here's how I do it; my default NNTP server is news.cerf.net:
  27.  
  28. #!/bin/sh
  29. NNTPSERVER=${NNTPSERVER:-news.cerf.net}
  30. suffix=${NAME:+`echo $NAME|sed -e 's/[^[:alpha:]]//g'`}
  31. DOTDIR=${DOTDIR:-"$HOME/.trrn-$NNTPSERVER${suffix:+-$suffix}"}
  32. export DOTDIR NNTPSERVER
  33. if [ ! -d $DOTDIR ] ; then
  34.   echo I am creating the following DOTDIR directory for you: $DOTDIR
  35.   echo This will prevent trrn from conflicting with your standard trn files.
  36.   echo "Please press RETURN to continue...\c"
  37.   read junk
  38.   mkdir $DOTDIR
  39. fi
  40. PATH=/usr/contrib/bin/trrndir:$PATH
  41. export PATH
  42. /usr/contrib/bin/trrndir/trrn
  43. -- 
  44. Mark Bixby                         Internet: markb@spock.dis.cccd.edu
  45. Coast Community College District   1370 Adams Avenue
  46. District Information Services      Costa Mesa, CA, USA  92626
  47. Technical Support                  (714) 432-5064
  48. "You can tune a file system, but you can't tune a fish." - tunefs(1M)
  49.