Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!thunder.mcrcim.mcgill.edu!snorkelwacker.mit.edu!apple!decwrl!sgi!rpw3@rigden.wpd.sgi.com From: rpw3@rigden.wpd.sgi.com (Rob Warnock) Newsgroups: comp.sys.sgi Subject: Re: setting REMOTEHOST on rlogins Message-ID: <110329@sgi.sgi.com> Date: 14 Jun 91 06:18:19 GMT References: <1991Jun12.174725@spruce.gsfc.nasa.gov> Sender: guest@sgi.sgi.com Reply-To: rpw3@sgi.com (Rob Warnock) Organization: Silicon Graphics, Inc., Mountain View, CA Lines: 29 In article <1991Jun12.174725@spruce.gsfc.nasa.gov> karl@spruce.gsfc.nasa.gov (karl anderson) writes: +--------------- | I'm just getting acquainted with SGI machines after using Suns alot. | I see that when I rlogin to one of our Irises, an environment variable | named "REMOTEHOST" is set to the name of the machine I'm logging in | from. Is this something unique to IRIX? +--------------- Sorry, yes, as far as I know. +--------------- | I'd love to be able to do that on my Suns - can anyone tell me how? +--------------- It's done in "rlogind", if you feel energetic enough to go get Berkeley "rlogind" source from UUNET (or your favorite archive), (re)invent the changes [hint: use getpeername()], and make it run on your Suns. -Rob p.s. We also define the "REMOTEUSER" variable, as well. ----- Rob Warnock, MS-1L/515 rpw3@sgi.com rpw3@pei.com Silicon Graphics, Inc. (415)335-1673 Protocol Engines, Inc. 2011 N. Shoreline Blvd. Mountain View, CA 94039-7311