|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
You don't need a fax machine to get faxes. Get a fax-to-email fax number from CallWave. Try it free.
|
|
#1
|
|||
|
|||
|
Hi, could anyone tell me or give me a script of a way to compute no of days since last login for a purticular user. I just want the output to be the no of days since last login. eg 90 or 35 etc. I have been working on this script for 3 weeks now......eveerything works fine except the part for getting the users's last login and computing the dasy since that date. any help is greatly appreciated.Thx in adv.
![]() |
|
#2
|
||||
|
||||
|
why can't you just grep from finger?
bash-2.05b# finger chris | grep login | cut -f3,4,5 -d' ' Mon May 10 seems to work quite well for me christo
__________________
. Spiration channels: Free scripts, programming tutorials and articles Dotcut alerts: Online Press cuttings / news alerts Clearprop: UK microlight school, wiltshire Uk dating: UK safe dating with Topdates About Christo . . |
|
#3
|
|||
|
|||
|
Hi chris,
getting the login is not the problem for me but getting the difference between two dates is. I cant seem to figure out how to do it. |
|
#4
|
||||
|
||||
|
Do it in PERL and use CPAN
christo |
![]() |
| Viewing: Dev Shed Forums > Operating Systems > UNIX Help > Days since last login |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|