Extended Last Release 1.0

Extended Last Release 1.0

Post by Matt » Sun, 23 May 2004 23:06:35



Hello,

I posted to comp.unix.solaris a while back asking if it was possible to
print all 32-characters of a users ut_user field in a utmpx structure.
The feedback seemed to indicate that this was not possible, so I wrote
the extended last:

http://www.daemons.net/~matty/code/lastx.c

In addition to printing all 32-characters of the username, it also
allows you to print the users who have logged in within the past
X days. You can also pass the "-u" option to lastx to have it print
the the number of times a user has logged in, along with the last time
they logged in:

./lastx -d 10 -u
Username             Logins  Terminal   Host                 Last Logged in
matty                    45  pts/5      192.168.1.8          Sat May 22 09:35:09 2004
clay                      1  pts/5      192.168.1.8          Sat May 2209:35:19 2004

The code is not the prettiest, but it seems to work ok. If you have
recommendations or feedback, I would love to hear it.

Hope folks find this useful. :)
- Ryan

 
 
 

Extended Last Release 1.0

Post by Roland Main » Tue, 25 May 2004 10:10:59



> I posted to comp.unix.solaris a while back asking if it was possible to
> print all 32-characters of a users ut_user field in a utmpx structure.
> The feedback seemed to indicate that this was not possible, so I wrote
> the extended last:

> http://www.daemons.net/~matty/code/lastx.c

Does the tool work in UTF-8 locales, too ?

----

Bye,
Roland

--
  __ .  . __

  \__\/\/__/  MPEG specialist, C&&JAVA&&Sun&&Unix programmer
  /O /==\ O\  TEL +49 641 7950090
 (;O/ \/ \O;)

 
 
 

1. newbie Upgrade a 3.0 RELEASE to LAST RELEASE

Hi, I decided a few days ago to reinstall all my PC with a good OS and not
this stupid Win...98 !!!
And so, I take me FreeBSD 3.0 RELEASE and install it in me box.
All is ok but I want to upgrade it to have the latest release.
I have never do it and don't understand all they say in web site :(

Can U help me to do this ?

Lob

2. Solve emumod loading problem

3. Nearly Free of M$ - Last problem with kppp in KDE 1.0

4. Wall paper

5. FreeBSD2.1.0-RELEASE: Fatal trap 12: page fault while in kernel mode

6. Trouble printing out of Netscape with HP LaserJet 5P

7. ANNOUNCE: tkWorld 1.0 Beta Release 3

8. mkpkg 1.0 released

9. ANNOUNCE: tkWorld 1.0 Release

10. Mozilla 1.0 has been released

11. drealmBBS version 1.0 released

12. Eshida Instant Embedded Linux 1.0 for X86 released