home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / unix / question / 10406 < prev    next >
Encoding:
Internet Message Format  |  1992-08-26  |  815 b 

  1. Path: sparky!uunet!cs.utexas.edu!sun-barr!ames!data.nas.nasa.gov!mustang.mst6.lanl.gov!ucsbcsl!cherry!cosmo
  2. From: cosmo@cherry.ucsb.edu (Burtin;Boris;;;;COMS;Undergraduate;940630;911002;1000)
  3. Newsgroups: comp.unix.questions
  4. Subject: How to determine user login time in minutes?
  5. Keywords: time, login, accounting
  6. Message-ID: <cosmo.714854795@cherry>
  7. Date: 26 Aug 92 18:46:35 GMT
  8. Sender: root@ucsbcsl.ucsb.edu
  9. Lines: 13
  10.  
  11. I'd like to keep track of how long I've used the system.  This should be done
  12. in my .logout file.  I've played around with "last," but it won't give me the
  13. time for the _current_ session (it says "still logged in").  
  14.  
  15. Is there a utility that I'm missing?  Or does someone know of a script 
  16. (preferably in Perl) that will figure out the login time?
  17.  
  18. Thanks,
  19.  
  20.  
  21. --
  22.      - Boris
  23. (cosmo@cs.ucsb.edu)
  24.