🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
1 messages
1 total messages Started by Jon Bell Fri, 29 Apr 1994 03:03
Re: trn: how to use NEWSRC variable?
#8799
Author: Jon Bell
Date: Fri, 29 Apr 1994 03:03
33 lines
1589 bytes
There are other "dotfiles" besides .newsrc to worry about.  I prefer to
have separate directories with dotfiles for each NNTP server, then set the
NNTPSERVER and DOTDIR variables accordingly.  Here's a "wrapper" for trn
which takes care of it for you:

#-----------------------------------------------------------------------
#!/bin/sh
# trnntp - read news using a specified news server
#
# Usage:  trnntp foo.bar.edu

if test $# -gt 0; then
	NNTPSERVER=$1
	export NNTPSERVER
	DOTDIR=$HOME/News/nntp/$NNTPSERVER
	export DOTDIR
	if test ! -d $HOME/News; then
		mkdir $HOME/News
	fi
	if test ! -d $HOME/News/nntp; then
		mkdir $HOME/News/nntp
	fi
	if test ! -d $DOTDIR; then
		mkdir $DOTDIR
	fi
fi
trn

#--------------------------------------------------------------------

-- 
Jon Bell <jtbell@presby.edu>                        Presbyterian College
Dept. of Physics and Computer Science        Clinton, South Carolina USA
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