home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.aix
- Path: sparky!uunet!ukma!darwin.sura.net!convex!constellation!uokmax.ecn.uoknor.edu!stsiegem
- From: stsiegem@uokmax.ecn.uoknor.edu (Stephan Siegemund-Broka)
- Subject: Re: How to redirect outputs from the command "time" into a file?
- Sender: usenet@constellation.ecn.uoknor.edu (Usenet Administrator)
- Message-ID: <BxJ66H.6H7@constellation.ecn.uoknor.edu>
- Date: Wed, 11 Nov 1992 02:42:14 GMT
- References: <1dolsiINNfuj@mailgzrz.TU-Berlin.DE>
- Organization: Engineering Computer Network, University of Oklahoma, Norman, OK, USA
- Lines: 30
-
- peba1231@camillo.fb12.tu-berlin.de (Peter Bartsch) writes:
-
- >>Hello, everyone:
- >>
- >>My first question is about saving outputs from the timing command
- >>"time" into a file. I tried "time a.out > a.time", but it did not
- >>work. How to capture the outputs into a file? ( I am running
- >>AIX3.2 on RS/6000 model 550).
-
- >In (t)csh, run your job within a subshell, like this:
-
- >% (time some-important-program > vip_output) > time_output
-
- >If you prefer to have both outputs in the same file:
-
- >% (time some-important-program > vip_output) >> vip_output
-
- >Peter
-
- >----------------------------------------------------------------------
- >Peter Bartsch | Tel. +49 (0)30 314 23093
- >TU Berlin, Sekr. F2 | FAX: +49 (0)30 314 22866
- >Marchstr. 14 |
- >1000 Berlin 10 | e-mail: peba1231@camillo.fb12.tu-berlin.de
- >----------------------------------------------------------------------
-
- easier still
- timex some program >& file (in csh)
- timex some program > file 2>&1 (in ksh)
-
-