Path: utzoo!utgpu!water!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!mailrus!cornell!batcomputer!itsgw!steinmetz!uunet!cbmvax!grr From: grr@cbmvax.UUCP (George Robbins) Newsgroups: news.admin Subject: Re: How do you get rid of this errlog message? Message-ID: <5043@cbmvax.UUCP> Date: 19 Oct 88 22:38:46 GMT References: <964@psuhcx.psu.edu> <291@lakart.UUCP> Reply-To: grr@cbmvax.UUCP (George Robbins) Distribution: na Organization: Commodore Technology, West Chester, PA Lines: 48 In article <291@lakart.UUCP> dg@lakart.UUCP (David Goodenough) writes: > From article <964@psuhcx.psu.edu>, by wcf@psuhcx.psu.edu (William C. Fenner): > ] In article <190@placer1.COM> amos@placer1.COM (Kevin Amos) writes: > ] |Could someone tell me how to get rid of this message in my > ] |errlog file. > ] > ] I'm not sure what the best way to get rid of this is... maybe go into the > ] directories themselves and remove the message files, and then rebuild the > ] history file, or maybe just edit the history file... > ] > ] Anyone have any better suggestions? > > Try the following two lines: > 1. from the /usr/new/lib/news/news.daily script: > find /usr/spool/news -mtime +7 -type f -exec rm \{\} \; 2>&1 >/dev/null > 2. from the /usr/new/lib/news/news.weekly script: > ./expire -e 7 -r Gee, there might be some customer dissatisfaction if you expire all news articles after only 7 days, though systems do vary... IFF you have a version of news with an ascii history file: grep '<.*[ \t].*>' ~news/history | \ sed -e 's/.*\t/rm ' -e 's/ / .usr.spool.news./g' -e '/\./\//g' > /tmp/script (iterate until you get a good looking rm script..) sh /tmp/script expire -r where \t means you type a tab... or find /usr/spool/news/x -exec grep -s '^Message-ID: *<.*[ \t].*>' '{}' ';' \ -print -exec rm '{}' ';' expire -r where x is one of sci/space/shuttle rec/games/hack misc/test and misc/consumers and \t means type a tab and the -print can be omitted if you're confident. The above no doubt contain errors and idiocies, but hopefully the astute news administrator can use either one as a starting point for purging the offensive articles... -- George Robbins - now working for, uucp: {uunet|pyramid|rutgers}!cbmvax!grr but no way officially representing arpa: cbmvax!grr@uunet.uu.net Commodore, Engineering Department fone: 215-431-9255 (only by moonlite)