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

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