Notice:

This is a script I wrote quite a while ago. It is not supported, but I left it here in case it might be useful to someone.

Please visit http://www.mattkruse.com/ for my updated web site and to find some of the things I've done more recently. Hopefully you will find something useful, or at least mildly interesting!

User Statistics Script


This script is not used with the WWW, but is very useful. It outputs login information about a specific user, or all users on a linux system. It gets this information based on the output of the 'last' command.

I find it interesting, and it can be useful for system administrators who are interested in statistics about users. It was written for perl 4.036 and linux, so if you want to use it on another system it will probably require extensive modifications.

Example Output

This is a sample of what the output looks like.

Source Code

Grab the source code from here. It's 100% free.