develooper Front page | perl.beginners | Postings from April 2002

Re: Calculating Last Login on Unix

Thread Previous | Thread Next
From:
gkhgkh
Date:
April 29, 2002 10:59
Subject:
Re: Calculating Last Login on Unix
Message ID:
20020429175842.RVNF9799.rwcrmhc51.attbi.com@rwcrwbc58
That gives me the information I want, the problem is it 
relies on wtmp.  I believe wtmp gets nulled out on an 
ipl of the server and therefore nulls wtmp.  Therefore I 
lose my history.  What I am trying to do is identify 
user IDs that have not been used for say 60 days and get 
rid of them.

Thanks for your help
> umm. you can run the "last" command and grep for the
> last login id. Is this what you need?
> 
> --- gkhgkh@attbi.com wrote:
> > Is there a module or a method using perl to
> > calculate 
> > the last login date for a user.  I know I can do
> > this by 
> > installing accounting, however I prefer not to do to
> > 
> > other issues.
> > 
> > Any thoughts/help is appreciated.
> > 
> > Thanks
> > 
> > -- 
> > To unsubscribe, e-mail:
> > beginners-unsubscribe@perl.org
> > For additional commands, e-mail:
> > beginners-help@perl.org
> > 
> 
> 
> =====
> Peter Lemus
> UNIX/NT Networks Engineer
> plemus11@yahoo.com
> 
> --The universe is way too big for us to be alone; the real question is; who is 
> out-there, besides us "humans"? 
> --A wise man will be master of his mind, a fool will be its slave.  Dr.David 
> Schwartz.
> --Enjoy every moment of the day; Live like as if today was your last day alive, 
> and perhaps, it might be.
> 
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Health - your guide to health and wellness
> http://health.yahoo.com

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About