home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 October / usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso / misc / volume6 / findpath.sh < prev    next >
Text File  |  1989-04-23  |  1KB  |  43 lines

  1. Newsgroups: comp.sources.misc
  2. From: allbery@uunet.UU.NET (Brandon S. Allbery - comp.sources.misc)
  3. Subject: v06i090: UUCP Pathfinder v1.1
  4. Reply-To: violence@jolnet.ORPK.IL.US (Violence)
  5. Distribution: usa
  6. Organization: TVH
  7.  
  8. Posting-number: Volume 6, Issue 90
  9. Submitted-by: violence@jolnet.ORPK.IL.US (Violence)
  10. Archive-name: findpath.sh
  11.  
  12.  
  13. Here's a nifty script that will isolate mail routings for you.  Nothing too
  14. fancy, but it works.
  15.  
  16.                    o /
  17. - - - - - - - - - - x- - - - - - - - - - - - - - - - - - - - - - - - - - - -
  18.                    o \
  19.  
  20. # Name: UUCP Pathfinder
  21. # Synopsis: findpath <systemname>
  22. # Description: Finds path from local-system to <systemname>
  23. # Caveat: Only works w/uucp names, no domains accepted
  24. echo ""
  25. echo "UUCP Pathfinder v1.1 (c)1988, Evan Robinson"
  26. echo "-------------------------------------------"
  27. echo "Searching, please hold.."
  28. if grep $1"!%s" /usr/lib/uucp/paths > /dev/null
  29. then
  30. echo "To get from "`uuname -l`" to $1, "
  31. echo "Send via uucp to:"
  32. grep $1"!%s" /usr/lib/uucp/paths
  33. else
  34. echo "Sorry, no paths available from "`uuname -l`" to $1."
  35. fi
  36. echo "-------------------------------------------"
  37. # End of file - 9/88
  38.  
  39.                    o /
  40. - - - - - - - - - - x- - - - - - - - - - - - - - - - - - - - - - - - - - - -
  41.                    o \
  42.  
  43.