🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #7375

Re: Help - looking for an autosave news program

#7375
From: Steven King, Software Archaeolog...
Date: Mon, 17 Jan 1994 16:36
43 lines
2631 bytes
nina@fynu.ucl.ac.be (Alain Ninane - FYNU) publicly declared:
>I'm currently reading news with `rn' on my UNIX systems.  Because
>news are not stored for a long time on my news feed, they disapear
>when I go in hollydays for say, longer than one week.   What I would
>like to have is a program which allow me to automatically save
>news, e.g. every morning.  I have tried to call `rn' from within
>a shell but that doesn't seem to work because `rn' is basically
>an interactive program.

This little script runs 'trn' to apply its KILL files non-interactively.
It was originally written for 'rn' and probably only needs minor changes
to be made to work with 'rn' again.  Either that or search Archie for
the original, named "rnkill".

---=== Cut Here ===---
#!/bin/sh
# trnkill - shell script to apply trn KILL files in the background
# 14 Mar 89  created by Jim Olsen <olsen@XN.LL.MIT.EDU>
# 10 Sep 93  modified for trn 3 (or 2) by Wayne Davison <davison@borland.com>
# Options: -d	debug mode -- you see all gory action as it happens.

# Visit all newsgroups (if trn asks about anything else, just say no)
export TRNINIT TRNMACRO RNMACRO
TRNINIT='-q -s -T -t -x +X'
TRNMACRO=/tmp/trnkill$$
# support for trn 2.x
RNMACRO=$TRNMACRO
trap 'rm -f $TRNMACRO; exit' 1 2 3 15
echo "z %(%m=[nf]?.q^M:n)^(z^)" > $TRNMACRO
if test X$1 = X-d; then
	echo "z" | trn
else
	echo "z" | trn >/dev/null 2>&1
fi
rm -f $TRNMACRO
exit 0
---=== Cut Here ===---

-- 
-------------------------------------------------------+-----------------------
broadcast msg from root: The universe is ending in     |      Steven King
five minutes.  SAVE ALL FILES!!                        |   Motorola Cellular
                                                       |   king@rtsg.mot.com
Technical Details
Message-ID: <2heer4$851@delphinium.cig.mot.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.readers.mbox.zip!gmd.de!xlink.net!sol.ctr.columbia.edu!howland.reston.ans.net!cs.utexas.edu!asuvax!ennews!mcdphx!schbbs!mothost!delphinium.cig.mot.com!wildebeest!king
References: <1994Jan16.115429.7742@info.ucl.ac.be>

Show Full Headers
Complete Article Headers
Message-ID: <2heer4$851@delphinium.cig.mot.com>
Subject: Re: Help - looking for an autosave news program
Date: Mon, 17 Jan 1994 16:36:52 +0000
From: king@wildebeest.cig.mot.com (Steven King, Software Archaeologist)
References: <1994Jan16.115429.7742@info.ucl.ac.be>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.readers.mbox.zip!gmd.de!xlink.net!sol.ctr.columbia.edu!howland.reston.ans.net!cs.utexas.edu!asuvax!ennews!mcdphx!schbbs!mothost!delphinium.cig.mot.com!wildebeest!king
Newsgroups: news.software.readers
Organization: Motorola Cellular Infrastructure Group
Lines: 43
Reply-To: king@wildebeest.cig.mot.com
NNTP-Posting-Host: wildebeest.rtsg.mot.com