[CentOS] redirecting time output

Rainer Traut tr.ml at gmx.de
Tue Nov 23 14:13:14 UTC 2010


am trying to pipe output from time command and output from a shell 
script to the mail program.
So far it's not working as expected...

# time echo "test" 2>&1 | mail -s "timetest" my at mail.com

real    0m0.126s
user    0m0.000s
sys     0m0.000s

The time command writes to stderror, but here the redirection seems to 
apply to the echo command?


More information about the CentOS mailing list