gabriel wrote:
when i run a program like "ls" the output is to STDOUT so i can pipe it or redirect it through something like sed or grep. but cvs doesn't do that. if i run "cvs update > /dev/null" or "cvs update | sed -e 's/<expression>/yyy/'" it still prints the same thing it always does. how do i capture this information?

The information is written to standard error instead of standard output. To capture standard error:


cvs update 2> /dev/null

To capture both:

cvs update > /dev/null 2> /dev/null
or
cvs update > /dev/null 2>&1



--
"Codito ergo sum"
Roel Schroeven

--
[EMAIL PROTECTED] mailing list



Reply via email to