Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!uwm.edu!ux1.cso.uiuc.edu!tank!shamash!nic.MR.NET!hal!ncoast!allbery From: allbery@NCoast.ORG (Brandon S. Allbery) Newsgroups: news.software.b Subject: Re: Cnews batch times Message-ID: <1989Oct20.033052.3494@NCoast.ORG> Date: 20 Oct 89 03:30:52 GMT References: <1989Oct14.175920.14722@daver.UU.NET> Reply-To: allbery@ncoast.ORG (Brandon S. Allbery) Followup-To: news.software.b Organization: North Coast Public Access UN*X, Cleveland, OH Lines: 44 As quoted from <1989Oct14.175920.14722@daver.UU.NET> by dlr@daver.UU.NET (Dave Rand): +--------------- | Is there an easy way, under C news, to control the time that | batching is done for certain sites? Under B news, of course, | one simply scheduled a sendbatch sitname at at certain time. | Under C news, I'm not sure... +--------------- The above technique can still be used under C news, just change the single sendbatches call to a sendbatches for each site at the proper time(s). Alternatively, use the fact that "sendbatches" is a shell script. Viz., # Run through them. for sys in $syses do # SPECIAL: DO NOT BATCH FOR WEBB-STILES DURING WORKING HOURS! if test "x$sys" = "xhal9000"; then set -- `date +'%w %H'` case "$1" in 0|6) ;; *) case "$2" in 0[0-6]) ;; 1[7-9]) ;; 2*) ;; *) continue ;; # skip batching esac ;; esac fi # End SPECIAL # Move into his directory, include it in search path. here=$NEWSARTS/out.going/$sys (This assumes a System V-ish "date" command. I believe a PD version is available out of the archives for Berzerk systems.) ++Brandon -- Brandon S. Allbery, moderator of comp.sources.misc allbery@NCoast.ORG uunet!hal.cwru.edu!ncoast!allbery ncoast!allbery@hal.cwru.edu bsa@telotech.uucp 161-7070 (MCI), ALLBERY (Delphi), B.ALLBERY (GEnie), comp-sources-misc@backbone [comp.sources.misc-related mail should go ONLY to comp-sources-misc@] *Third party vote-collection service: send mail to allbery@uunet.uu.net (ONLY)*