Path: utzoo!attcan!uunet!wuarchive!uwm.edu!rutgers!netsys!len From: len@netsys.netsys.COM (Len Rose) Newsgroups: news.admin Subject: Re: inpaths Message-ID: <16431@netsys.netsys.COM> Date: 24 Sep 89 10:27:40 GMT References: <1989Sep24.072129.17264@rpi.edu> Reply-To: len@netsys.COM (Len Rose) Organization: Netsys,Inc. Lines: 32 Why go through all of that when you can do it far easier by having a list of all articles placed in ~spool/batch/survey and then just running a short shell script via cron.. I think it was Rich Salz who pointed this out some time ago. ~lib/news/sys ####################################################################### # Brian's new survey survey:\ all,!local:F:/usr2/spool/batch/survey ####################################################################### # Process Brian Reid's new path report BATCHDIR=/usr2/spool/batch INSPATH=/usr2/bin/inspath SITE=netsys WORK=survey.work INPUT=survey OUTPUT=/usr2/tmp/inspath.out MAILER=/bin/mail cd $BATCHDIR /bin/touch $WORK /bin/cat $INPUT >> $WORK cp /dev/null $INPUT $INSPATH $SITE <$WORK> $OUTPUT $MAILER pathsurvey@decwrl.dec.com news < $OUTPUT /bin/rm -f $WORK $OUTPUT