From: mwormley@galaxy.csc.calpoly.edu (Matthew Aaron Wormley) Subject: Re: tcsh: sending text output to two places Date: Tue, 10 Aug 1993 14:56:53 GMT
In article <1993Aug10.022121.5537@vax1.mankato.msus.edu>,
Robert A. Hayden <hayden@krypton.mankato.msus.edu> wrote:
>I am using Linux and I would like to, using the tcsh shell, send output
>from a program to two locations. One is to a file, and the other is to
>/dev/tty11. What is the proper format for doing it to two locations like
>this?
I hope you mean stdout > file and stderr > /dev/tty11 (or vice versa)?
If so... here's what I do:
(foo > file) > /dev/tty11
Kinda cheesy, I know. The ()'s cause foo to be executed in a
sub-shell. Only the stderr output will make it to /dev/tty11.
worm