Hi again Armen,

On Feb 4, 4:02 am, Armen Kaleshian <[email protected]> wrote:
> 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.

Yes, see, that's the problem. I don't just want the errors, I want any
output from the compilation process, but excluding printing a copy on
my screen of the command line that is actually executed... For
example, what I see on my screen now is (simplified hypothetical
case):

#make program
make [1]: entering directory {dir}
/bin/gcc [enormous commandline with parameters and flags]
warning: blablabla
warning: blabla
/bin/zip [parameters and files]
Adding: module1.o
Adding: module2.o
make [1]: leaving directory {dir}

Using your method, everything except the warning: blabla lines are cut

What I'm looking for is a way to have all of the lines I get now, with
the exception of the /bin/gcc and /bin/zip lines, so I can still
follow the build process without getting spammed with thousands of
chars of executed command for each source file. So basically the
equivalent of having a local echo off in terminal terms -- not
displaying what is fed into the process, but displaying everything
that is returned.

Is there a way to do that either with a bash command or alternatively
with a make option (since I can always add a makeopts flag as well, of
course)?

Thanks again.

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

Reply via email to