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