Path: utzoo!attcan!utgpu!watmath!iuvax!purdue!ames!ll-xn!olsen From: olsen@XN.LL.MIT.EDU (Jim Olsen) Newsgroups: comp.unix.questions Subject: Re: A Quiet KILL Summary: here's my 'rnkill' script Message-ID: <1492@xn.LL.MIT.EDU> Date: 28 Jul 89 14:53:47 GMT References: <2317@aplcen.apl.jhu.edu> Reply-To: olsen@xn.UUCP (Jim Olsen) Organization: MIT Lincoln Laboratory, Lexington, MA Lines: 30 In article <2317@aplcen.apl.jhu.edu> @aplvax.jhuapl.edu:jwm@stdb.jhuapl.edu (Jim Meritt) writes: >Is there a way to run rrn such that it will go through the KILL files for all >the groups non-interactively, saving the interactive process for the stuff >I want to look at? I am open for a script, options,programs,... Here's a script I wrote to do just that. You can run it in background, but you must wait for it to finish before trying to read your news. #!/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 # # 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