jwm@stdb.jhuapl.edu (Jim Meritt) (07/26/89)
I use rrn. I have a rather large KILL file structure (gets cross-posts, uninteresting subjects & posters, finds things of interest and displays article number & subject, looks for my own name in the body and displays the subject,...) Running the KILL files takes up a long time. 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,... Thanks. Opinions expressed are solely those of the author, and do not necessarily represent those opinions of this or any other organization. The facts, however, simply are and do not "belong" to anyone. jwm@aplvax.jhuapl.edu - or - jwm@aplvax.uucp - or - meritt%aplvm.BITNET
olsen@XN.LL.MIT.EDU (Jim Olsen) (07/28/89)
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