home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / unix / aix / 12838 < prev    next >
Encoding:
Text File  |  1992-12-24  |  1.6 KB  |  32 lines

  1. Newsgroups: comp.unix.aix
  2. Path: sparky!uunet!wupost!cs.utexas.edu!geraldo.cc.utexas.edu!portal.austin.ibm.com!awdprime.austin.ibm.com!exeter.austin.ibm.com!woan
  3. From: woan@exeter.austin.ibm.com (Ronald S. Woan)
  4. Subject:  Is there a way to find the name of the machine I am on?
  5. Sender: news@austin.ibm.com (News id)
  6. Message-ID: <Bzs1zK.1Ms6@austin.ibm.com>
  7. Date: Thu, 24 Dec 1992 18:57:20 GMT
  8. Reply-To: woan@cactus.org
  9. References: <1992Dec24.133832.20452@edsi.plexus.COM>
  10. Organization: Austin School of Hardknocks
  11. Lines: 19
  12.  
  13. In article <1992Dec24.133832.20452@edsi.plexus.COM> calb@edsi.plexus.COM (Calvin Bolwerk) writes:
  14. >I am looking for a way to find the internet name of the machine 
  15. >that I am logged in on.  We have a few PC's connected to the 
  16. >network and a few remote RS/6000's.  I am attempting to 
  17. >standardize the login procedure and different actions need to be 
  18. >taken depending on whether the user is logging on from a PC or an 
  19. >RS/6000 (like running xinit).
  20.  
  21. At first, I thought you just meant the hostname command. I think you
  22. can at the very least use the tty command to determine if you are
  23. logging in at the console for the xinit though I suppose this doesn't
  24. help you if you use X stations that need xinit (then again with X
  25. stations you can also test the XSTATION environemnt variable).
  26.  
  27. -- 
  28. +-----All Views Expressed Are My Own And Are Not Necessarily Shared By------+
  29. +------------------------------My Employer----------------------------------+
  30. + Ronald S. Woan                       woan@cactus.org or woan@vnet.ibm.com +
  31. + other email addresses             Prodigy: XTCR74A Compuserve: 73530,2537 +
  32.