Works great. Thanks

Tony

-----Original Message-----
From: Raj Kiran Grandhi [mailto:[EMAIL PROTECTED] 
Sent: Saturday, December 15, 2007 6:27 AM
To: Tony Heal
Cc: debian-user@lists.debian.org
Subject: Re: Send stderr to variable, but send stdout to screen?

Tony Heal wrote:
> I have an error handling function that traps, reports and exits on an
error.
> My problem is that I want to do all of that and I want to still see
stdout.

Try this:

$ errors=$(command 2>&1 1> $(tty))


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to