home *** CD-ROM | disk | FTP | other *** search
/ Source Code 1992 March / Source_Code_CD-ROM_Walnut_Creek_March_1992.iso / usenet / compsrcs / misc / volume06 / findpath.sh < prev    next >
Encoding:
Internet Message Format  |  1991-08-27  |  1.6 KB

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