home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / unix / aix / 11474 < prev    next >
Encoding:
Text File  |  1992-11-10  |  1.5 KB  |  42 lines

  1. Newsgroups: comp.unix.aix
  2. Path: sparky!uunet!ukma!darwin.sura.net!convex!constellation!uokmax.ecn.uoknor.edu!stsiegem
  3. From: stsiegem@uokmax.ecn.uoknor.edu (Stephan Siegemund-Broka)
  4. Subject: Re: How to redirect outputs from the command "time" into a file?
  5. Sender: usenet@constellation.ecn.uoknor.edu (Usenet Administrator)
  6. Message-ID: <BxJ66H.6H7@constellation.ecn.uoknor.edu>
  7. Date: Wed, 11 Nov 1992 02:42:14 GMT
  8. References: <1dolsiINNfuj@mailgzrz.TU-Berlin.DE>
  9. Organization: Engineering Computer Network, University of Oklahoma, Norman, OK, USA
  10. Lines: 30
  11.  
  12. peba1231@camillo.fb12.tu-berlin.de (Peter Bartsch) writes:
  13.  
  14. >>Hello, everyone:
  15. >>
  16. >>My first question is about saving outputs from the timing command
  17. >>"time" into a file. I tried "time a.out > a.time", but it did not
  18. >>work. How to capture the outputs into a file? ( I am running
  19. >>AIX3.2 on RS/6000 model 550).
  20.  
  21. >In (t)csh, run your job within a subshell, like this:
  22.  
  23. >% (time some-important-program > vip_output) > time_output
  24.  
  25. >If you prefer to have both outputs in the same file:
  26.  
  27. >% (time some-important-program > vip_output) >> vip_output
  28.  
  29. >Peter 
  30.  
  31. >----------------------------------------------------------------------
  32. >Peter Bartsch        |   Tel.    +49 (0)30 314 23093
  33. >TU Berlin, Sekr. F2  |   FAX:    +49 (0)30 314 22866
  34. >Marchstr. 14         |
  35. >1000 Berlin 10       |   e-mail: peba1231@camillo.fb12.tu-berlin.de
  36. >----------------------------------------------------------------------
  37.  
  38. easier still 
  39. timex some program >& file (in csh)
  40. timex some program > file 2>&1 (in ksh)
  41.  
  42.