Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!watmath!clyde!rutgers!ucla-cs!sdcrdcf!hplabs!decwrl!decvax!tektronix!uw-beaver!ubc-vision!van-bc!sl From: sl@van-bc.UUCP Newsgroups: news.software.b Subject: Re: Resending news using history file... Message-ID: <351@van-bc.UUCP> Date: Tue, 27-Jan-87 02:28:34 EST Article-I.D.: van-bc.351 Posted: Tue Jan 27 02:28:34 1987 Date-Received: Fri, 30-Jan-87 04:22:08 EST References: <437@walrus.Adelie.COM> Reply-To: sl@van-bc.UUCP (Stuart Lynne) Distribution: world Organization: Public Access Network, Vancouver, BC. Lines: 51 In article <437@walrus.Adelie.COM> barry@walrus.Adelie.COM (Barry A. Burke) writes: > >Does anyone have a shell script that will re-que news articles using the >history file? From time to time it is necessary for me to re-send the >last couple of days' worth of news to one of my leaf sites. Typically, >I'll run a simple find(1) on the /usr/spool/news directory, sending all >files modified within the last `n' days. However, this is blatantly >inefficient, as cross-posted articles are thus sent multiple times (only >to be dropped as duplicates on the receiving end). > >A script that walked the history file pulling out the article pathnames >for the past "n" days and sticking those back into >/usr/spool/batch/ would be much more efficient, and I think a >quite useful addition to the news 2.11 distribution. > There are two solutions to this. First is what you proposed a shell script to walk through and find any articles to repost and resend them. A script was posted recently (Nov/Dec I think) to just that. Secondly, a simple solution which requires only minimal setup is to add the following line to your sys file: backup:world,comp,sci,news,rec,soc,talk,misc,net,mod,na,usa,can:F This will create a file called backup in /usr/spool/batch containing the names of all of the articles received. You should arrange the following in your daily news cleanup script: mv backup.7.Z backup.8.Z mv backup.6.Z backup.7.Z ... mv backup.1.Z backup.2.Z mv backup backup.1 compress backup.1 To resend a days feed simply: zcat /usr/spool/batch/backup.n.Z /usr/spool/batch/sitename Compress does a reasonably good job of keeping the files down to a minimal size due to the regularity of the filenames. I keep two weeks worth at a cost of about 125k of file space. -- Stuart Lynne ihnp4!alberta!ubc-vision!van-bc!sl Vancouver,BC,604-937-7532 Todays feature: Perry Mason Solves the Case of the Buried Clock, Erle Stanley Gardner, 1943. A bank clerk boasted branzenly about a $90,000 embezzlement, and an alarm clock ticked away cheerfully underground.