Re: [CentOS] redirecting time output

2010-11-23 Thread Stephen Harris
On Tue, Nov 23, 2010 at 05:04:09PM +0100, Rainer Traut wrote: > Am 23.11.2010 15:30, schrieb m.r...@5-cent.us: > > Rainer Traut wrote: > >> 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... > >> > >> # tim

Re: [CentOS] redirecting time output

2010-11-23 Thread Rainer Traut
Am 23.11.2010 15:30, schrieb m.r...@5-cent.us: > Rainer Traut wrote: >> Hi, >> >> 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" m...@mail.com >> >> real

Re: [CentOS] redirecting time output

2010-11-23 Thread m . roth
Rainer Traut wrote: > Hi, > > 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" m...@mail.com > > real0m0.126s > user0m0.000s > sys 0m0.000s > > The t

[CentOS] redirecting time output

2010-11-23 Thread Rainer Traut
Hi, 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" m...@mail.com real0m0.126s user0m0.000s sys 0m0.000s The time command writes to stderror, but here