Thanks a lot for all the answers.
I think that I now can solve my problem.
Thanks to:
Shaukat Riaz
John Lozey
Mike Caplin
Pat O'Brien
Lawrie Smith
Murtaza Talawala
The solution was the following:
/usr/sbin/edauth -g <username> | grep -c ":u_lock_at_:"
Returns 1 if NOT locked and 0 if locked
Regards
/Martin
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
LUFTFARTSVERKET
Swedish Civil Aviation Administration
Martin Truedsson Voice: +46406131394
Luftfartsverket, ANS/ASU Fax : +46406131378
BOX 55 Mobile: +46708631376
230 32 Malmö-Sturup ICQ#: 11164114
<
http://www.lfv.se> E-post: martin.truedsson_at_lfv.se
Received on Fri Apr 05 2002 - 08:02:35 NZST