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

RE: Calculating Last Login on Unix

Thread Previous | Thread Next
From:
Wagner-David
Date:
April 29, 2002 11:07
Subject:
RE: Calculating Last Login on Unix
Message ID:
113A7A0D1F47D511B92E00D0B7E03DAB0187BDBF@pmail02.vikingfreight.com
	Maintain your own little db using the info from wtmp and then you
are not relying upon wtmp but only to get the info and keep in your own db.

Wags ;)

-----Original Message-----
From: gkhgkh@attbi.com [mailto:gkhgkh@attbi.com]
Sent: Monday, April 29, 2002 10:59
To: beginners@perl.org; Peter Lemus
Subject: Re: Calculating Last Login on Unix


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

-- 
To unsubscribe, e-mail: beginners-unsubscribe@perl.org
For additional commands, e-mail: beginners-help@perl.org

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