Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!uunet!mcsun!ukc!stc!datlog!scm From: scm@dlcq15.datlog.co.uk (Steve Mawer) Newsgroups: comp.unix.questions Subject: Finding your remote host's name Message-ID: <1990Jun6.091842.11335@dlcq15.datlog.co.uk> Date: 6 Jun 90 09:18:42 GMT Organization: Data Logic Ltd, Financial Systems Division. Lines: 12 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 or < {backbone}!ukc!datlog!scm > Voice: +44 1 863 0383 (x2153)