🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #5373

Re: Processing KILL files as a cron job?

#5373
From: Sridhar Venkataraman
Date: Thu, 19 Aug 1993 23:17
44 lines
2144 bytes
rthomson@mesa.dsd.es.com (Rich Thomson) writes:

| An idea just occurred to me.  It would be useful if I could run a cron
| job that would do KILL file processing for me once a day, when I'm not
| normally reading news.  Then when I go into the group to actually read
| articles, the KILL file overhead has already been taken care of.

Assuming that the rnkill script helps, here is it modified for trn (Wayne
clued me in reg. this!). You may need to change NEWSRC, KILLLOCAL, SAVEDIR
and SAVENAME. I use this for archiving 2 newsgroups through KILLfiles.

Sridhar.
-=-=Cut here=-=-
#!/bin/sh

RNINIT='+q +x +X -M -s -T -t'
export RNINIT

#Change the following to your taste
#NEWSRC=$HOME/misc/rmic/.newsrc
#KILLLOCAL=$HOME/misc/rmic/kill/%C
#SAVEDIR=$HOME/misc/rmic
#SAVENAME=%C
#export SAVENAME SAVEDIR KILLLOCAL NEWSRC 

# (if these # comments bother your system, strip them out)
#
# rnkill - shell script to apply rn KILL files in background
# Jim Olsen  - 14 Mar 89 (olsen@XN.LL.MIT.EDU)
#
# Options: -d	debug mode.  You see all gory action as it happens.

# Visit all newsgroups (if rn asks about anything else, just say no)
RNMACRO=/tmp/rnkill$$
export RNMACRO 
trap 'rm -f $RNMACRO; exit' 1 2 3 15
echo "z %(%m=[nf]?.q^j:n)^(z^)" > $RNMACRO
if test X$1 = X-d; then
	echo "z" | trn
else
	echo "z" | trn >/dev/null 2>&1
fi
rm $RNMACRO
exit 0
Technical Details
Message-ID: <sridhar.24578@ennews.eas.asu.edu>
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!newsserver.jvnc.net!howland.reston.ans.net!gatech!asuvax!ennews!enuxsa.eas.asu.edu!sridhar
References: <250v9h$jn9@orca.es.com>

Show Full Headers
Complete Article Headers
Message-ID: <sridhar.24578@ennews.eas.asu.edu>
Subject: Re: Processing KILL files as a cron job?
Date: Thu, 19 Aug 1993 23:17:24 GMT
From: sridhar@asuvax.eas.asu.edu (Sridhar Venkataraman)
References: <250v9h$jn9@orca.es.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!newsserver.jvnc.net!howland.reston.ans.net!gatech!asuvax!ennews!enuxsa.eas.asu.edu!sridhar
Newsgroups: news.software.readers
Originator: sridhar@enuxsa.eas.asu.edu
Sender: news@ennews.eas.asu.edu (USENET News System)
Organization: Arizona State University, Tempe AZ
Lines: 44