Getting full remote hostname

David Disser disser at tosh.engin.umich.edu
Sun Dec 9 06:02:54 AEST 1990


Is there any way to get the full remote hostname as it would appear in
the ouput of the "who" command?

Example:

% who
disser   ttyp1   Dec  8 12:20   (bendog.engin.umi)
			
                                 ^^^^^^^^^^^^^^^^
				This should be bendog.engin.umich.edu

Any fairly OS-independent way to do this?  I'd like to use this to set my
DISPLAY variable in my .login file, which will be sourced by Ultrix, BSD,
and AIX machines.

Please post replies by mail, as I do not read this newsgroup.

--

\ Dave Disser        | (313) 763-2660      \ disser at caen.engin.umich.edu
/ CAEN User Services | 229 Chrysler Center / Ann Arbor, MI 48109-2092 



More information about the Comp.unix.questions mailing list