FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > CentOS > CentOS

 
 
LinkBack Thread Tools
 
Old 11-23-2010, 01:13 PM
Rainer Traut
 
Default redirecting time output

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" my@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?

Thx
Rainer
_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
 

Thread Tools




All times are GMT. The time now is 06:57 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org