Xref: utzoo comp.unix.questions:28839 comp.unix.internals:2108 Path: utzoo!attcan!uunet!samsung!crackers!m2c!umvlsi!dime!dime.cs.umass.edu!moss From: moss@cs.umass.edu (Eliot Moss) Newsgroups: comp.unix.questions,comp.unix.internals Subject: Re: GETTING HOSTNAME FROM UTMP Message-ID: Date: 31 Jan 91 13:42:33 GMT References: <994@baan.UUCP> Sender: news@dime.cs.umass.edu Reply-To: moss@cs.umass.edu Followup-To: comp.unix.questions Organization: Dept of Comp and Info Sci, Univ of Mass (Amherst) Lines: 11 In-reply-to: michiel@baan.UUCP's message of 30 Jan 91 12:28:17 GMT The versions of who with which I am familiar get the hostname from the ut_host part of the utmp entry. They skip printing if the first character is null (inidicating there is no hostname present in the utmp entry). -- J. Eliot B. Moss, Assistant Professor Department of Computer and Information Science Lederle Graduate Research Center University of Massachusetts Amherst, MA 01003 (413) 545-4206, 545-1249 (fax); Moss@cs.umass.edu