Re: Scripting/Information Help
From: Aaron W Morris (aaronmorris_at_MINDSPRING.COM)
Date: 03/26/04
- Previous message: Bill Verzal: "Re: alt_disk_install question"
- In reply to: terry.german_at_PHONES4U.CO.UK: "Scripting/Information Help"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Fri, 26 Mar 2004 17:22:23 -0500 To: aix-l@Princeton.EDU
terry.german@PHONES4U.CO.UK wrote:
> Guru's,
>
> As I am not a wizz on scripting I was just wondering if anyone out there can
> help me.
>
> I want to find out which users on our M80 running AIX 4.3.3 have not
> accessed there id for the last 6 months?
>
> If anyone could help it would be great...
>
> Thanks
>
> Terry German
I wrote a script specifically for this purpose several years ago. I
wrote different pieces at varying levels of knowledge of perl, so I the
code might not look great. I wrote it for AIX 4.3, and I know it runs
on AIX 5.1 as well (not sure about 5.2).
It takes an unlimited number of parameters and gives you a separated
list of users that have not logged in since the given time periods....
ie. lastlogin.pl 8h 3d 9w 6m 4y
would give you 5 lists (with no duplicates) of users that have not
logged in within
8 hours
3 days
9 weeks
6 months
4 years
-- Aaron W Morris <aaronmorris@mindspring.com> (decep)
- application/x-ospwebinstall attachment: lastlogin.pl
- Previous message: Bill Verzal: "Re: alt_disk_install question"
- In reply to: terry.german_at_PHONES4U.CO.UK: "Scripting/Information Help"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|