Thread View: news.software.readers
2 messages
2 total messages
Started by Rich Thomson
Thu, 19 Aug 1993 22:36
Processing KILL files as a cron job?
Author: Rich Thomson
Date: Thu, 19 Aug 1993 22:36
Date: Thu, 19 Aug 1993 22:36
17 lines
1469 bytes
1469 bytes
An idea just occurred to me. It would be useful if I could run a cron job that would do KILL file processing for me once a day, when I'm not normally reading news. Then when I go into the group to actually read articles, the KILL file overhead has already been taken care of. Does anyone know of a way to hack this? I suppose a perl script with the NNTP package would do it, but I am not (yet) a perl hacker so I don't really have a clue as to how to implement it. Any thoughts are welcome! -- Rich -- Foreign intervention? Higher taxes? Don't blame me; I voted Libertarian. Disclaimer: I speak for myself, except as noted; Copyright 1993 Rich Thomson UUCP: ...!uunet!dsd.es.com!rthomson Rich Thomson Internet: rthomson@dsd.es.com IRC: _Rich_ Fractal Freak
Re: Processing KILL files as a cron job?
Author: Sridhar Venkataraman
Date: Thu, 19 Aug 1993 23:17
Date: Thu, 19 Aug 1993 23:17
44 lines
2144 bytes
2144 bytes
rthomson@mesa.dsd.es.com (Rich Thomson) writes: | An idea just occurred to me. It would be useful if I could run a cron | job that would do KILL file processing for me once a day, when I'm not | normally reading news. Then when I go into the group to actually read | articles, the KILL file overhead has already been taken care of. Assuming that the rnkill script helps, here is it modified for trn (Wayne clued me in reg. this!). You may need to change NEWSRC, KILLLOCAL, SAVEDIR and SAVENAME. I use this for archiving 2 newsgroups through KILLfiles. Sridhar. -=-=Cut here=-=- #!/bin/sh RNINIT='+q +x +X -M -s -T -t' export RNINIT #Change the following to your taste #NEWSRC=$HOME/misc/rmic/.newsrc #KILLLOCAL=$HOME/misc/rmic/kill/%C #SAVEDIR=$HOME/misc/rmic #SAVENAME=%C #export SAVENAME SAVEDIR KILLLOCAL NEWSRC # (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) RNMACRO=/tmp/rnkill$$ export RNMACRO trap 'rm -f $RNMACRO; exit' 1 2 3 15 echo "z %(%m=[nf]?.q^j:n)^(z^)" > $RNMACRO if test X$1 = X-d; then echo "z" | trn else echo "z" | trn >/dev/null 2>&1 fi rm $RNMACRO exit 0
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads