Try #2 on days since last login

From: Steve Bagdon (sun@bagdon.com)
Date: Wed Jul 24 2002 - 15:17:14 EDT


Ok, in a failure on my part to clearly define what I wanted, let's try this again:

I know that /bin/last will display WHEN someone last logged in, but it doesn't give an integer of the number of days SINE last login. I'm looking for something to either give me an epoch of the occurance of last login, or number of seconds since last login, or number of days since last login, etc. I can write code to parse /bin/last to figure out number of days, but I was hoping to find a perl module to do this work for me.

Please note, after 6 months, it appears Solaris changes from month/day/hour/min to month/day/year (at least with files), not sure after 6 months of last (accounts are deleted after 100 days). What would be best is to have a slice of perl code that does something like this:

$days_since_last_login = LOGIN::LAST(userid)

Or something like that?

Thanks!

Steve B.
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:24:39 EDT