cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: --stderr in curl 7.9.3 for win32

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Wed, 13 Mar 2002 09:40:52 +0100 (MET)

On Wed, 13 Mar 2002, lsi wrote:

(Reply CC'ed to the curl mailing list, plase post follow-ups there.)

> when I try to use this parameter, all output goes to the file, not just
> errors ... sample commandline:
>
> curl -O http://www.test.com/test.htm --stderr myfile.txt

That is correct, all writes to stderr are instead directed to the given file.
The progress meter output is sent to stderr.

How would you suggest it would be done?

We pass contents to stdout when -O isn't used, and we still like the progress
meter to work for those cases so we can't write it to stdout too.

For example, when doing things like this:

 $ curl http://daniel.haxx.se/huuuugefile | ./eat-big-files.sh

-- 
    Daniel Stenberg -- curl groks URLs -- http://curl.haxx.se/
Received on 2002-03-13