[news.misc] Processing KILL files in background.

richards@utkcs2.cs.utk.edu (Jon T Richardson) (08/15/90)

I was wondering if there was a way to process KILL files and bring
the .newsrc up to date in the background.  I sometimes spend an inordinate 
amount of time (as much as 5 minutes) waiting for rn to kill articles
and skip unavailable ones.  Surely there is some tool out there that
does this.

I've seen people ask about this from time to time - maybe this should go
in a "frequently asked" posting.  I'd appreciate any pointers, and
I will post a summary if it seems appropriate.

Jon.

-- 
      |~~\    |---------------------------------------------------|
      | _/    | Jon T Richardson    :  richards@cs.utk.edu        |
      | \     | Graduate Student    :  uunet!cs.utk.edu!richards  |
  \__/    \   | U. of Tennessee     :  jrichard@utkvx.bitnet      |

jik@pit-manager.mit.edu (Jonathan I. Kamens) (08/15/90)

Well, I didn't write it, but here's a tool to do what you're asking.

Jonathan Kamens			              USnail:
MIT Project Athena				11 Ashford Terrace
jik@Athena.MIT.EDU				Allston, MA  02134
Office: 617-253-8495			      Home: 617-782-0710

		      *************************

#!/bin/sh
# (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)
export RNMACRO RNINIT
RNINIT='-s -T -t'
RNMACRO=/tmp/rnkill$$
trap 'rm -f $RNMACRO; exit' 1 2 3 15
echo "z %(%m=n?.q^M:n)^(z^)" > $RNMACRO
if test X$1 = X-d; then
	echo "z" | rn
else
	echo "z" | rn >/dev/null 2>&1
fi
rm $RNMACRO
exit 0