Newsgroups: comp.unix.aix Path: utzoo!utgpu!cunews!nrcnet0!cfd.di.nrc.ca!ng From: ng@cfd.di.nrc.ca (Kai Ng) Subject: Re: REMOTEHOST Message-ID: <1991Mar21.140213.8928@nrcnet0.nrc.ca> Sender: root@nrcnet0.nrc.ca (Operator) Nntp-Posting-Host: cfd.di.nrc.ca Reply-To: ng@cfd.di.nrc.ca Organization: Informatics, National Research Council Canada References: <1991Mar20.185405.5746@nrcnet0.nrc.ca> <6034@awdprime.UUCP> Date: Thu, 21 Mar 91 14:02:13 GMT In article <6034@awdprime.UUCP>, jfh@greenber.austin.ibm.com (John F Haugh II) writes: |> In article <1991Mar20.185405.5746@nrcnet0.nrc.ca> ng@cfd.di.nrc.ca writes: |> >In AIX/RS6000, is there a way to find out from where you are actually |> >login'ed ? |> |> You can get this information either from /etc/utmp |> or |> |> % who | grep jfh |> jfh pts/9 Mar 20 16:01 (snowball.austin.) |> |> Regrettably you don't get all of it because the u_host field is only |> 16 characters long. |> -- |> John F. Haugh II | I've Been Moved | MaBellNet: (512) 838-4340 The who command would work only in a few cases. It fails if you have login'ed more than once from more than 1 place; or as you suggested the remote host name is long. On top of that 'who' has a bug, which I hope it is fixed in 3003, that it still lists, quite often, users who have logoff'ed. Somewhere in the system must this information be stored. However I do prefer to have a shell solution. Thank you. -- ----------------------------------------------------------------------------- Kai S. Ng Informatics, National Research Council Canada INTERNET ng@cfd.di.nrc.ca M-60 Montreal Road, Ottawa, Canada K1A 0R6 BITNET kain@nrcvm01.bitnet VOICE (613) 993-0240 FAX (613) 954-2561