[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Is there a deb that does this?



Amanda Shuler wrote:
> Is there a program for Linux that will tell you do a monthly scan to see
> if there are any users that have not logged in for at least four months
> and then send an email to root with a list of these users?
>   
> I've been struggling with a bash shell script, and (due to my lack of
> programming experience, I guess) have had no luck.
> So I was wondering if I was trying to reinvent the wheel?

'lastlog' will get you part way there. You just have to somehow sort the
output by date. Sorry, I'm feeling lazy or I'd write it.

-- 
see shy jo


Reply to: