Path: utzoo!attcan!uunet!zaphod.mps.ohio-state.edu!rpi!uupsi!jpradley!jpr From: jpr@jpradley.jpr.com (Jean-Pierre Radley) Newsgroups: comp.mail.uucp Subject: Re: comp.mail.maps -> pathalias -> map Message-ID: <1991Jan12.183150.6640@jpradley.jpr.com> Date: 12 Jan 91 18:31:50 GMT References: <59425@aurs01.UUCP> Reply-To: jpr@jpradley.UUCP (Jean-Pierre Radley) Organization: NYC Public Unix Lines: 39 In article <59425@aurs01.UUCP> roberson@aurs01.uucp (Charles "Chip" Roberson) writes: >I have what I'm sure is an absolutely dumb question, but I haven't >seen any easy way to do this. How do people automate the updating of >their maps from comp.mail.maps to their map file using pathalias? I >thought it would be in the pathalias documentation but I didn't see >it. Any pointers to locations in TFM would be appreciated. Any >examples (e.g. rn macros, shell scripts, etc) would be greatly >appreciated. I was using plain old 'sh' to crack open the articles, until someone pointed out that this was a dangerous procedure. Now I use "unsharmap", which comes from the smail3.1 distribution. I leave the lcasep, pathalias, and unsharmap executables in my /pub/lib/maps directory. There, I also have a script which is run nightly from root's crontab: : remap -- if new articles are in 'list', extract and process [ -s list ] && { unsharmap < list > log 2> error mv list list.o ; } || exit pathalias -i d* u.* | lcasep | sort -o paths chgrp uucp paths chown uucp paths mv paths /usr/lib/uucp/paths The "list" file is created by this line in /usr/lib/news/sys: map:comp.mail.maps/all:F:/pub/lib/maps/list Since I extract every twenty-four hours, I force the map articles to expire that fast too. -- Jean-Pierre Radley NYC Public Unix jpr@jpr.com CIS: 72160,1341