in reply to Re: Which operating system?
in thread Detecting Expired User Accounts
use strict; use User::pwent; my $user = shift; my $pw = getpwnam($user) or die "No user '$user'"; print "'$user' has", $pw->expire ? ' ' : ' not ', "expired\n" ;
"Do you know any way of doing it without add. modules?"
Check out the built-in function getpwent, but try the module out first. It won't bite. ;)
p.s.
I found this information by issuing the following two
commands in a terminal:
jeffa
L-LL-L--L-LL-L--L-LL-L-- -R--R-RR-R--R-RR-R--R-RR B--B--B--B--B--B--B--B-- H---H---H---H---H---H--- (the triplet paradiddle with high-hat)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Detecting Expired User Accounts
by Kanji (Parson) on Aug 17, 2002 at 20:38 UTC | |
|
Re: (jeffa) 2Re: Detecting Expired User Accounts
by BrowserUk (Patriarch) on Aug 17, 2002 at 19:19 UTC | |
|
Re: (jeffa) 2Re: Detecting Expired User Accounts
by Anonymous Monk on Aug 17, 2002 at 15:15 UTC |