Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/5/84; site luke.UUCP Path: utzoo!watmath!clyde!burl!ulysses!allegra!oliveb!bene!luke!itkin From: itkin@luke.UUCP (Steven List) Newsgroups: net.news Subject: Re: limiting news to certain hours of the day? Message-ID: <287@luke.UUCP> Date: Thu, 25-Jul-85 19:23:42 EDT Article-I.D.: luke.287 Posted: Thu Jul 25 19:23:42 1985 Date-Received: Sat, 27-Jul-85 03:25:07 EDT References: <726@lsuc.UUCP> Reply-To: itkin@luke.UUCP (Steven List) Organization: Benetics Corp, Mt.View, CA Lines: 34 Summary: In article <726@lsuc.UUCP> dave@lsuc.UUCP (David Sherman) writes: >Our system is heavily loaded during office hours and can't >handle the additional load of uuxqt/cunbatch/news-unpack/rnews Since cunbatch is just a shell script, why not either: 1) change it to save the file to a special directory and then run the original cunbatch at the time of your choice, or 2) replace cunbatch with csavebatch and coordinate with your newsfeed to use the new name in their sys file. Both solutions are basically the same. They just implement the suggestions from the original article. The script csavebatch could be as simple as: SAVE=/usr/spool/savebatch if [ ! -d $SAVE ]; then mkdir $SAVE; fi NEXTID=`ls $SAVE/[0-9]*` set $NEXTID if [ $# -ne 1 ] then NEXTID=1 touch $SAVE/$NEXTID fi cat > $SAVE/save.$NEXTID NEXT=`expr $NEXTID + 1` mv $SAVE/NEXTID $SAVE/NEXT -- *** * Steven List @ Benetics Corporation, Mt. View, CA * Just part of the stock at "Uncle Bene's Farm" * {cdp,greipa,idi,oliveb,sun,tolerant}!bene!luke!itkin ***