home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / unix / shell / 4548 < prev    next >
Encoding:
Text File  |  1992-11-06  |  1.1 KB  |  28 lines

  1. Newsgroups: comp.unix.shell
  2. Path: sparky!uunet!stanford.edu!ames!nsisrv!news2.gsfc.nasa.gov!fish
  3. From: fish@daacdev1.stx.com
  4. Subject: Re: How to redirect outputs from the command "time" into a file? 
  5. Message-ID: <fish.720983465@news2.gsfc.nasa.gov>
  6. Sender: usenet@nsisrv.gsfc.nasa.gov (Usenet)
  7. Nntp-Posting-Host: daacdev1.stx.com
  8. Organization: Goddard Space Flight Center
  9. References: <1992Nov5.024837.6571@cs.tulane.edu>
  10. Date: Thu, 5 Nov 1992 17:11:05 GMT
  11. Lines: 15
  12.  
  13. mt0lamg@convex1.tcs.tulane.edu (Louis X. Lee) writes:
  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?
  18. time puts its output on stderr (not noted in any man page i've
  19. ever seen either) so:
  20. time a.out 2>a.time
  21.  
  22.             fish
  23. --
  24. John R. Vanderpool                INTERNET: fish@daacdev1.stx.com
  25. NASA/GSFC                         VOX: 301-513-1683                
  26. Hughes/STX Corporation            FAX: 301-513-1608
  27. "somehow seems strange and a little bit funny, to wander thirsty in the rain" pr
  28.