Processing KILL files in background.

Jonathan I. Kamens jik at pit-manager.mit.edu
Wed Aug 15 07:50:31 AEST 1990


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 at 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 at 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



More information about the Alt.sources mailing list