Finding your remote host's name
Steve Mawer
scm at dlcq15.datlog.co.uk
Wed Jun 6 19:18:42 AEST 1990
If I `rlogin' from machine1 to machine2, is there a simple and (relatively)
portable way to find out on machine2 the name of machine1? I'd like to do
this from a shell script if possible, but I'm willing to write C code if
necessary.
I need this to run on ULTRIX V3 (DECsystem 3100), AIX V2 and V3 (RT PC and
RISC system/600), Unisys 5000 UTS and SCO Xenix on Compaqs using SCO TCP/IP
(and probably Excelan, but I'm not keen on this one :-().
--
Steve C. Mawer <scm at datlog.co.uk> or < {backbone}!ukc!datlog!scm >
Voice: +44 1 863 0383 (x2153)
More information about the Comp.unix.questions
mailing list