Xref: utzoo comp.mail.misc:1067 news.sysadmin:785 Path: utzoo!utgpu!water!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!mailrus!cornell!uw-beaver!ubc-cs!van-bc!sl From: sl@van-bc.UUCP (pri=-10 Stuart Lynne) Newsgroups: comp.mail.misc,news.sysadmin Subject: Re: My script for mapfiles/pathalias updating Keywords: pathalias, maps, update, script Message-ID: <1844@van-bc.UUCP> Date: 1 Jul 88 17:51:01 GMT References: <957@flatline.UUCP> <320@elan.UUCP> <471@unisv.UUCP> <3386@rpp386.UUCP> Reply-To: sl@van-bc.UUCP (pri=-10 Stuart Lynne) Organization: Wimsey Associates, Vancouver, BC. Lines: 43 In article <3386@rpp386.UUCP> jfh@rpp386.UUCP (The Beach Bum) writes: >In article <471@unisv.UUCP> vanpelt@unisv.UUCP (Mike Van Pelt) writes: >>In article <957@flatline.UUCP> erict@flatline.UUCP (j eric townsend) writes: >>[description of map-updating script] >>>>Anyone who thinks they can do this better, please post your script. > In my sys file: MAPS:world,comp.mail.maps:F From a nightly cron script - getmap: #!/bin/sh # @(#)getmaps.sh # Reads the netnews for the UUCP maps, extract them and # moves them to the storage area DEST=/usr/spool/paths ADM=mail LOG=/local/lib/paths/maplog SRC=/usr/spool/batch/MAPS PATH=$PATH:/local/bin cd $DEST date >> $LOG if [ -r $SRC ] then cat $SRC >> $SRC.work rm $SRC fi cat $SRC.work | while read i do unshar $i done -- Stuart.Lynne@wimsey.bc.ca {ubc-cs,uunet}!van-bc!sl Vancouver,BC,604-937-7532