home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / unix / aix / 11442 < prev    next >
Encoding:
Internet Message Format  |  1992-11-10  |  1.3 KB

  1. Path: sparky!uunet!mcsun!Germany.EU.net!rrz.uni-koeln.de!unidui!math.fu-berlin.de!mailgzrz.TU-Berlin.DE!camillo.fb12.tu-berlin.de!peba1231
  2. From: peba1231@camillo.fb12.tu-berlin.de (Peter Bartsch)
  3. Newsgroups: comp.unix.aix
  4. Subject: Re: How to redirect outputs from the command "time" into a file?
  5. Date: 10 Nov 1992 15:52:50 GMT
  6. Organization: TU Berlin, Inst. f. Luft- und Raumfahrt, FRG
  7. Lines: 23
  8. Distribution: world
  9. Message-ID: <1dolsiINNfuj@mailgzrz.TU-Berlin.DE>
  10. Reply-To: peba1231@camillo.fb12.tu-berlin.de
  11. NNTP-Posting-Host: camillo.fb12.tu-berlin.de
  12.  
  13. >Hello, everyone:
  14. >
  15. >My first question is about saving outputs from the timing command
  16. >"time" into a file. I tried "time a.out > a.time", but it did not
  17. >work. How to capture the outputs into a file? ( I am running
  18. >AIX3.2 on RS/6000 model 550).
  19.  
  20. In (t)csh, run your job within a subshell, like this:
  21.  
  22. % (time some-important-program > vip_output) > time_output
  23.  
  24. If you prefer to have both outputs in the same file:
  25.  
  26. % (time some-important-program > vip_output) >> vip_output
  27.  
  28. Peter 
  29.  
  30. ----------------------------------------------------------------------
  31. Peter Bartsch        |   Tel.    +49 (0)30 314 23093
  32. TU Berlin, Sekr. F2  |   FAX:    +49 (0)30 314 22866
  33. Marchstr. 14         |
  34. 1000 Berlin 10       |   e-mail: peba1231@camillo.fb12.tu-berlin.de
  35. ----------------------------------------------------------------------
  36.