>:
>: wtmpx stores a wopping total of 256 bytes of the remote hostname; last will
>: only show a few because it formats nicer.
>:
>:
>: So the information is there, it just won't show.
>:
>yep. its not too hard to write your own modified last command to do this
>if you want either.
>basically just check out the source from freebsd/netbsd whatever, to get
>a general idea of whats going on, and go from there.
I'm not so sure. I had written the same to Mr. DeBruyne,
but he quite correctly pointed out that the information
is *not* there, at least not as you and I first said.
Here's what I know: essentially all Unixes offer a `man
utmp`. For BSD-derived flavors, /usr/include/utmp.h
typically includes in the definition for utmp a ut_host
field; this is NOT present, however, in SysVish Unixes,
including Solaris, in particular (and Mr. DeBruyne did
post his appeal to c.u.s). Even for BSD, by the way,
it's stickier than might first appear, for, in the words
of one man page at hand,
When they log out, init(8) clears that entry
by setting ut_name and ut_host to null strings
...
The key to this, as so often is the case in c.u.s, is to
read what Mr. Dik has written carefully. He mentioned
utmpx(4). There, eXtended utmp information, including
ut_host, is indeed available.
I'm rushed now, but perhaps over the weekend I'll post a
small example program.
--
Cameron Laird http://starbase.neosoft.com/~claird/home.html
+1 713 996 8546 FAX