🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #6229

"batch process" trn killfiles

#6229
From: Wayne Davison
Date: Sun, 10 Oct 1993 17:58
38 lines
2099 bytes
According to Wes Morgan <morgan@engr.uky.edu>:
> I'd *love* to see a "I'm not reading, but process today's news
> through my killfile" option to rn/trn.  If I could do something
> like this in a crontab at, oh, 8am or so, things would be MUCH
> nicer when I get around to actually reading that day...

I guess I should include this script in the trn distribution.  For
now I've cross-posted this message to alt.sources with Archive-Name
set to "trnkill".
-- 
Wayne Davison
davison@borland.com
---8<------8<------8<------8<---cut here--->8------>8------>8------>8---
#!/bin/sh
# trnkill - shell script to apply trn KILL files in the background
# 14 Mar 89  created for rn 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
echo "^m ^(z^)" >> $TRNMACRO
echo "^j ^(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
---8<------8<------8<------8<---cut here--->8------>8------>8------>8---
Technical Details
Message-ID: <CEp0LA.6u6@borland.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp!funic!news.funet.fi!sunic!pipex!howland.reston.ans.net!usc!elroy.jpl.nasa.gov!decwrl!borland.com!davison
References: <CEnvpM.EqM@ms.uky.edu>

Show Full Headers
Complete Article Headers
Message-ID: <CEp0LA.6u6@borland.com>
Subject: "batch process" trn killfiles
Date: Sun, 10 Oct 1993 17:58:22 GMT
From: davison@borland.com (Wayne Davison)
References: <CEnvpM.EqM@ms.uky.edu>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp!funic!news.funet.fi!sunic!pipex!howland.reston.ans.net!usc!elroy.jpl.nasa.gov!decwrl!borland.com!davison
Newsgroups: news.software.readers,alt.sources
Followup-To: news.software.readers
Keywords: trn killfile batch cron
Organization: Borland International
Archive-Name: trnkill
Lines: 37