🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.mail.sendmail
Article #2862

Re: Pathalias & a local file

#2862
From: Andrew Patrick
Date: Fri, 14 Oct 1988 14:33
42 lines
2154 bytes
In article <211@fantasci.UUCP> jep@fantasci.UUCP (Joseph E Poplawski) writes:

>Is there a way with pathalias to have a map entry for your site, that only 
>your site uses.  For example, to let your system know that you speak to system
>ALPHA ten times a day, but in the normal map entry that gets distributed to the
>net, say you speak to ALPHA once a week?  I heard something mentioned of a file
>that can be created called 'u.local' or something like that.  Would that be
>the correct way to do it?

Yes, create the file with the local information you want, and then
make sure that it is the first input to pathalias.  Our script for
calling pathalias from cron once a week includes the following:

...
| P1="local.changes"
| P2="d.*"
| P3="u.[a-z]*"
| PATHS="$P1 $P2 $P3"
| pathalias -i $PATHS | sort > paths.new; mv paths paths.old; mv paths.new paths
| echo "Done."
...
 
and the file 'local.changes' contains information like:

...
| # machines and connections known to have trouble
|
| dead	{mnetor, ihnp4, dciem!utcsri}
|
| # unadvertised links
|
| foo   bar(DIRECT)
...

I hope this helps.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Andrew Patrick, Ph.D.       Communications Research Center, Ottawa, CANADA 
                             (613) 990-4675
patrick@crcmar.UUCP  uunet!ai.toronto.edu!utgpu!bnr-vpa!bnr-rsc!crcmar!patrick
INTERNET: dgbt@ncs.dnd.ca                     BITNET: patrick%crcmar@utorgpu
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Technical Details
Message-ID: <944@crcmar.uucp>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!water!watmath!clyde!att!rutgers!bellcore!tness7!texbell!sugar!ficc!uunet!mitel!scs!cognos!crcmar!patrick
References: <211@fantasci.UUCP>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!water!watmath!clyde!att!rutgers!bellcore!tness7!texbell!sugar!ficc!uunet!mitel!scs!cognos!crcmar!patrick
From: patrick@crcmar.uucp (Andrew Patrick)
Newsgroups: comp.mail.sendmail
Subject: Re: Pathalias & a local file
Summary: Yes, you can do it with a u.local file
Keywords: pathalias local mail
Message-ID: <944@crcmar.uucp>
Date: 14 Oct 88 14:33:28 GMT
References: <211@fantasci.UUCP>
Reply-To: patrick@crcmar.UUCP (Andrew Patrick)
Followup-To: comp.mail.sendmail
Organization: The Communications Research Centre Ottawa, CANADA
Lines: 42