[alt.sources] Processing KILL files in background.

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