strange request: script to track logged in time
I'm having great fun with writing basic bash scripts. It's amazing how specific you can make 'em. I was wondering if anyone could suggest an efficient/reliable way "to keep track of the accumulated time that a user is logged in since the system was set up".
Basically I was think of using the "last" command and using a script to extract the times but this seems unreliable and messy. Another one is to extract the login time and logoff time and add to an accumulating time tracking file.
Just wondering if anyone has other ways of doing this. Thanks!
Last edited by hamster; 05-07-2003 at 03:37 PM.