>|>
>|> time puts its output on stderr (not noted in any man page i've
>|> ever seen either) so:
>|> time a.out 2>a.time
>Almost got it.
>"time" will consider the rest of the line as a whole, so
>time a.out 2>a.time
>will be interpreted as : run "a.out 2>a.time" and report the
>running time of "a.out 2>a.time".
>SOLUTION : (time a.out) 2>a.time
Fish was right. Assuming a Bourne-like shell (he did use the 2>a.time
Bourne syntax), time couldn't possibly report the running time of the
redirected command because the redirection would occur before /bin/time
was called.
Of course, all of this changes if time is a shell builtin, like it
is in csh and tcsh and probably some others. Then time can (and in
the case of csh does) time the redirected command and your answer
would be correct if csh used the 2>a.time syntax for redirection.
--
Dave Eisen Sequoia Peripherals: (415) 967-5644
There's something in my library to offend everybody.
--- Washington Coalition Against Censorship