time CMD > /some/file 2>&1  works for me using <br><br>jshaw@jshaw:~$ bash --version<br>GNU bash, version 4.1.5(1)-release (x86_64-pc-linux-gnu)<br> <br>jshaw@jshaw:~$ time ls -alh >  /tmp/huh 2>&1<br><br>
real    0m0.045s<br>user    0m0.000s<br>sys     0m0.000s<br><br>All of my output is in /tmp/huh and the time output is on the console.  <br><br>-jason<br><br><div class="gmail_quote">On Wed, Dec 21, 2011 at 2:57 PM, Neil Watson <span dir="ltr"><<a href="mailto:tlug-neil@watson-wilson.ca">tlug-neil-8agRmHhQ+n2CxnSzwYWP7Q@public.gmane.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Suppose I have a command:<br>
<br>
"time <other_cmd>"<br>
<br>
How can I redirect the other command's stdout and stderr but not the<br>
output of time?<span class="HOEnZb"><font color="#888888"><br>
<br>
-- <br>
Neil Watson<br>
Linux/UNIX Consultant<br>
<a href="http://watson-wilson.ca" target="_blank">http://watson-wilson.ca</a><br>
--<br>
The Toronto Linux Users Group.      Meetings: <a href="http://gtalug.org/" target="_blank">http://gtalug.org/</a><br>
TLUG requests: Linux topics, No HTML, wrap text below 80 columns<br>
How to UNSUBSCRIBE: <a href="http://gtalug.org/wiki/Mailing_lists" target="_blank">http://gtalug.org/wiki/<u></u>Mailing_lists</a><br>
</font></span></blockquote></div><br>