home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1993 July / Internet Tools.iso / RockRidge / mail / smail-3.1.28 / contrib / micnet / micname < prev    next >
Encoding:
Text File  |  1990-10-23  |  778 b   |  20 lines

  1. : use /bin/sh
  2. #
  3. #  micname - return a list of micnet neighbors, without the local host, one
  4. #            per line
  5. #
  6. #  J. O'Connor, Filtration Sciences Corp., January 18, 1989
  7. #
  8.  
  9. # choose one of the methods below for identifying your local system
  10. #LOCALSYS=`uname -n`     # won't work unless you've re-linked the kernel
  11. #LOCALSYS=`uuname -l`    # won't work if you're not using uucp
  12. LOCALSYS=`head -1 /etc/systemid`   # should work just about everywhere
  13.  
  14. # in top.next, all systems should be listed at least once in the first column
  15. # or the routing mechanism will not work.  Multiple appearances are possible,
  16. # but should be consecutive, so we can use "prev" to eliminate duplicates.
  17. awk '/^[A-z]/ && $1 != x && $1 != prev {print $1}' x=$LOCALSYS \
  18.     /usr/lib/mail/top.next
  19.