My apologies Mark for misunderstanding your initial question. I believe what
you're looking for is the following...

I just tested this in my environment using bash 3.2.25 with a random build I
had in my sandbox..

If I run the following command line string...
make all 2>&1 > /dev/null

...the only output I get on the screen are the errors returned from gcc.
This link below is where I found the tidbit, about halfway down the page:
http://www.linuxtutorialblog.com/post/tutorial-the-best-tips-tricks-for-bash

The explanation from the page was the following, which definitely makes
sense:

   - First, we're telling bash to run the command "ps" with "aux" as an
   argument.
   - Then, we're telling to redirect stderr to stdout. At the moment, stdout
   is still going to the terminal, so the stderr output of "ps aux" is sent to
   the terminal.
   - After that, we're telling bash to redirect the stdout output to the
   file filename. The stdout output of "ps aux" is sent to this file indeed,
   but the stderr output isn't: it is not affected by stream 1.

Let us know if that works.

-- Armen


On Wed, Feb 3, 2010 at 21:03, wolfbeast <[email protected]> wrote:

> Hi Armen
>
> On Feb 4, 2:19 am, Armen Kaleshian <[email protected]> wrote:
> > What you need to do is redirect stdout and only show stderr.
> >
> > This link may help clarify what you need to do.
> http://www.faqs.org/faqs/unix-faq/faq/part2/section-9.html
> >
>
> Thanks for the pointer, but wouldn't redirecting stdout (for example
> to /dev/null if I don't want it) also dump any text that is echo'd
> from shell scripts to it? Or does that end up in stderr? the only
> thing I want to cut out is echoing the executed command lines.
>
> Mark.
>
> --
> You received this message because you are subscribed to the Linux Users
> Group.
> To post a message, send email to [email protected]
> To unsubscribe, send email to [email protected]
> For more options, visit our group at
> http://groups.google.com/group/linuxusersgroup
>

-- 
You received this message because you are subscribed to the Linux Users Group.
To post a message, send email to [email protected]
To unsubscribe, send email to [email protected]
For more options, visit our group at 
http://groups.google.com/group/linuxusersgroup

Reply via email to