curl-users
--stderr option
Date: Mon, 20 Nov 2000 15:12:51 +0100
Hi,
I have tried to redirect stderr output to stdout doing
something like
curl --stderr - -O http://www.something.com/ > output
At the end I get the progress meters headers in the 'output'
file but the numbers themselves are shown in the console
instead of getting into the file as I expected.
Looking at the progress.c file where the progress meter is
calculated, where it says:
fprintf(stderr,
"\r%3d %s %3d %s %3d %s %s %s %s %s %s %s",
(int)total_percen, /* total % */
...............................
Shouldn't it be?
fprintf(data->err,
"\r%3d %s %3d %s %3d %s %s %s %s %s %s %s",
(int)total_percen, /* total % */
...........................................................
Or am I getting the wrong idea?
Andres
Received on 2000-11-20