Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!cs.utexas.edu!usc!snorkelwacker!bloom-beacon!eru!luth!sunic!ericom!erix.ericsson.se!euas11c05.ericsson.se!euatdt From: euatdt@euas11c05.ericsson.se (Torsten Dahlkvist) Newsgroups: news.newusers.questions Subject: Automated rn question Summary: How do I run rn 'kill' files automagically? Message-ID: <2530@erix.ericsson.se> Date: 1 Dec 89 11:34:10 GMT References: <566@dftsrv.gsfc.nasa.gov> <5290@omepd.UUCP> Sender: news@erix.ericsson.se Reply-To: euatdt@euas11c05.ericsson.se (Torsten Dahlkvist) Organization: Ellemtel Utvecklings AB, Stockholm, Sweden Lines: 35 Here's a problem that's been bugging me lately. I usually run rn in a SunView tool called "newstool". Basically this is a shell-script loop which runs an 'rn -c' to check for unread mail and changes the icon if the return value is > 0. My problem: I have many 'kill' files to cut down the noice in groups where I nevertheless want to remain active. Unfortunately, 'rn -c' doesn't run the 'kill' files, so frequently when newstool flashes at me and I look for news, everything gets killed - a false alarm. How can I instruct rn to run through all kill files on all subscribed newsgroups unattended? I'd like to have something like this: while (1) sleep for_a_while if (`rn -c` > 0) then rn -autokill endif if (`rn -c` > 0) then change_icon news rn change_icon no_news endif end Anyone out there with good ideas? E-mail preferred - I'll summarize if anything turns up. /Torsten Torsten Dahlkvist ELLEMTEL Telecommunication Laboratories P.O. Box 1505, S-125 25 ALVSJO, SWEDEN Tel: +46 8 727 3788