From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fa528,47b409fbd499d670 X-Google-Attributes: gidfa528,public X-Google-ArrivalTime: 2004-02-27 14:48:16 PST Path: archiver1.google.com!news2.google.com!newsfeed2.dallas1.level3.net!news.level3.com!crtntx1-snh1.gtei.net!news.gtei.net!newsfeed1.easynews.com!easynews.com!easynews!newsfeed.frii.net!newsfeed.frii.net!news.compaq.com!news.cpqcorp.net!53ab2750!not-for-mail From: Brian Haley User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.5) Gecko/20031007 X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: comp.unix.tru64 Subject: Re: Last command output format References: <9bc9c9cd.0402260631.3ca837fa@posting.google.com> In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Message-ID: Date: Fri, 27 Feb 2004 22:51:14 GMT NNTP-Posting-Host: 16.142.8.2 X-Complaints-To: abuse@HP.com X-Trace: news.cpqcorp.net 1077922274 16.142.8.2 (Fri, 27 Feb 2004 14:51:14 PST) NNTP-Posting-Date: Fri, 27 Feb 2004 14:51:14 PST Organization: Hewlett-Packard Company Xref: archiver1.google.com comp.unix.tru64:11249 Peter da Silva wrote: > struct utmp { > char ut_user[32]; /* User login name */ > char ut_id[14]; /* /etc/inittab id- IDENT_LEN in init */ > char ut_line[32]; /* device name (console, lnxx) */ > short ut_type; /* type of entry */ > [...] > time_t ut_time; /* time entry was made */ > char ut_host[64]; /* host name same as MAXHOSTNAMELEN */ > }; This was changed to 256 some time ago (1997 ?). >>The host field is truncated to 16 char where in fact it is a 256 char >>field. My host names are longer than 16 characters. The 'last' command uses a %16s modifier to print the hostname, probably to make a nice table. Perhaps you could open a problem report to add a flag (-l for long) to print the full name? It might be hard to change the default since that might break someone else's existing script. Or perhaps you are feeling daring and want to pull the FreeBSD source for last.c and modify it :) -Brian