[comp.sources.misc] v06i090: UUCP Pathfinder v1.1

allbery@uunet.UU.NET (Brandon S. Allbery - comp.sources.misc) (04/24/89)

Posting-number: Volume 6, Issue 90
Submitted-by: violence@jolnet.ORPK.IL.US (Violence)
Archive-name: findpath.sh


Here's a nifty script that will isolate mail routings for you.  Nothing too
fancy, but it works.

                   o /
- - - - - - - - - - x- - - - - - - - - - - - - - - - - - - - - - - - - - - -
                   o \

# Name: UUCP Pathfinder
# Synopsis: findpath <systemname>
# Description: Finds path from local-system to <systemname>
# Caveat: Only works w/uucp names, no domains accepted
echo ""
echo "UUCP Pathfinder v1.1 (c)1988, Evan Robinson"
echo "-------------------------------------------"
echo "Searching, please hold.."
if grep $1"!%s" /usr/lib/uucp/paths > /dev/null
then
echo "To get from "`uuname -l`" to $1, "
echo "Send via uucp to:"
grep $1"!%s" /usr/lib/uucp/paths
else
echo "Sorry, no paths available from "`uuname -l`" to $1."
fi
echo "-------------------------------------------"
# End of file - 9/88

                   o /
- - - - - - - - - - x- - - - - - - - - - - - - - - - - - - - - - - - - - - -
                   o \