home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!cs.utexas.edu!sun-barr!ames!network.ucsd.edu!ucsbcsl!cherry!cosmo
- From: cosmo@cherry.ucsb.edu (Burtin;Boris;;;;COMS;Undergraduate;940630;911002;1000)
- Newsgroups: comp.unix.questions
- Subject: Re: How to determine user login time in minutes?
- Message-ID: <cosmo.714950751@cherry>
- Date: 27 Aug 92 21:25:51 GMT
- References: <cosmo.714854795@cherry> <IDF.92Aug27111645@fat-controller.cs.bham.ac.uk>
- Sender: root@ucsbcsl.ucsb.edu
- Lines: 21
-
- Thanks to all who replied. It looks like I'm going to be stuck with doing my
- own math when determining my login time.
-
- I did get one suggestion that particularly perked my curiosity. Richard Czech
- (czech@gmd.de) suggested the following:
-
- Try to put the command "time" into your .logout file. Just "time"
- without any parameters gives you the uses system, cpu and real
- time of the current shell.
-
- Sure enough, this works when executed in real time. But when you try to pipe
- the output to a file or variable, it displays the _time_it_takes_to_perform
- _that_action_!
-
- Does anyone have suggestions about how to keep the output of time which tells
- me how long I've been logged in? By the way, if it makes a difference, I'm
- running tcsh on SunOS 4.1.2.
-
- --
- - Boris
- (cosmo@cs.ucsb.edu)
-