RE: Send stderr to variable, but send stdout to screen?
Works great. Thanks
Tony
-----Original Message-----
From: Raj Kiran Grandhi [mailto:grajkiran@gmail.com]
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))
Reply to: