home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!mcsun!uknet!news.cs.bham.ac.uk!idf
- From: idf@cs.bham.ac.uk (Ian Fitchet)
- Newsgroups: comp.unix.questions
- Subject: Re: How to determine user login time in minutes?
- Message-ID: <IDF.92Aug27111645@fat-controller.cs.bham.ac.uk>
- Date: 27 Aug 92 11:16:45 GMT
- References: <cosmo.714854795@cherry>
- Sender: news@cs.bham.ac.uk
- Organization: School of Computer Science, University of Birmingham
- Lines: 22
- In-Reply-To: cosmo@cherry.ucsb.edu's message of 26 Aug 92 18:46:35 GMT
- Nntp-Posting-Host: fattie
-
- > On 26 Aug 92, Boris wrote
-
- > I'd like to keep track of how long I've used the system. This should be done
- > in my .logout file. I've played around with "last," but it won't give me the
- > time for the _current_ session (it says "still logged in").
-
- > Is there a utility that I'm missing? Or does someone know of a script
- > (preferably in Perl) that will figure out the login time?
-
- If you want to use last then why not background the job in your
- .logout, sleep&loop until the "still logged in" is replaced with the
- timestamp then do your numbering with that.
-
- --
- Cheers,
-
- Ian
-
- -------------------------------------------------------------------------------
- Ian Fitchet I.D.Fitchet@cs.bham.ac.uk
- School of Computer Science
- Univ. of Birmingham, UK, B15 2TT
-