csh question

Eli Taub/100000 eli at panda.uucp
Tue Jul 3 02:00:25 AEST 1990


In article <7267 at large.cray.com> tbc at large.cray.com (Tom Craig) writes:
>I have a csh question. Is it possible to redirect stdout and stderr to 
>different files in the c shell, (like 1>out 2>err in the bourne shell)?
>I can't figure out how, and no one has been able to enlighten me. 

Try this:                       (prog > out) >& err

A special case of the above is: (prog > /dev/tty) >& /dev/null
that will filter out all stderr.

                                                           _   |___      
Eli Taub                                                    |     |   \  |
(512) 838-4810                                                    |   /\/
Contractor at (AWD) IBM  | I express my apinions not IBM's.      /   |  \



More information about the Comp.unix.questions mailing list