Article View: news.software.readers
Article #12046Needed: a trn/strn/rn Kill file _CODE_ expert
From: lvirden
Date: Sat, 22 Oct 1994 03:47
Date: Sat, 22 Oct 1994 03:47
37 lines
2046 bytes
2046 bytes
I have tried - honestly I have. And I suppose, if I were to work in all my spare time, every week for the next few months, I might be able to eventually figure this out. But I would rather see if there were a quick solution to this proposition. Currently, at least trn and probably the others above have the ability within the KILL file to indicate that an article matching a regular expression should be piped into a program. What I would like to ask for is one slight modification. I would like for the _return code_ of the program on the end of the pipe to determine whether an article was marked as selected, junked or left alone. I am perfectly willing to live with a new symbol in this case - perhaps a } or something. What I want to do is be able to say things like: /nonsense/}mycheck and then have mycheck be something like: #! /bin/sh grep -s 'morestuff' >> /dev/null return $? so that now I can do operations on the newsarticle, and have the return code determine whether the item deserves to be selected or not. -- :s Great net resources sought... :s Larry W. Virden INET: lvirden@cas.org :s <URL:http://www.mps.ohio-state.edu/cgi-bin/hpp?lvirden_sig.html> The task of an educator should be to irrigate the desert not clear the forest.
Technical Details
Message-ID:
<1994Oct22.034720.3265@chemabs.uucp>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.readers.mbox.zip!bga.com!news.sprintlink.net!malgudi.oar.net!chemabs!lwv26Show Full Headers
Complete Article Headers
Message-ID: <1994Oct22.034720.3265@chemabs.uucp> Subject: Needed: a trn/strn/rn Kill file _CODE_ expert Date: Sat, 22 Oct 1994 03:47:20 GMT From: lvirden@cas.org Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.readers.mbox.zip!bga.com!news.sprintlink.net!malgudi.oar.net!chemabs!lwv26 Newsgroups: news.software.readers Content-Type: text/plain; charset=US-ASCII Sender: lwv26@chemabs.uucp (Larry W. Virden) Reply-To: lvirden@cas.org Content-Transfer-Encoding: 7BIT Organization: Nedriv Software and Shoe Shiners, Uninc. Mime-Version: 1.0 Lines: 37