How can I redirect output from MAKE i such a way that I get only --silent output to screen, but full MAKE-output to a log file?
Or can this be achieved through some sdout/stderr redirection magic?
make > log-file 2>&1 or
make 2>&1 | tee log-file | filter Where filter is a program that passes only what you want to see. Use grep or sed or something else.
make | tee /dev/stderr | filter > filtered-log this does the opposite. But /dev/stderr, /dev/stdout, /dev/stdin, /dev/fd/* is not available on all systems. This was answered before with a comment:
if you want full output to the file, then use make > file.log 2>&1 and you'ill get a "--silent" output to screen. This is a very basic shell usage.
and 4 days have passed, i think that it no longer need to be responded.
make --silent doesn't print the commands as they are executed (as if they were all prefixed by @), but you still get their output.
make > file.log 2>&1and you'ill get a "--silent" output to screen. This is a very basic shell usage.