cURL / Mailing Lists / curl-users / Single Mail

curl-users

[ curl-Bugs-614333 ] -w info is sent to stdout not -o file

From: <noreply_at_sourceforge.net>
Date: Wed, 25 Sep 2002 04:30:07 -0700

Bugs item #614333, was opened at 2002-09-25 04:30
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100976&aid=614333&group_id=976

Category: client module
Group: wrong behaviour
Status: Open
Resolution: None
Priority: 5
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Daniel Stenberg (bagder)
Summary: -w info is sent to stdout not -o file

Initial Comment:
When specifiying the -w (--write-out) parameter in
combination with -o (--output) the -w information is
written to the stdout instead of the file specified in -o.
The retrieved URL is correctly written to -o file.

Without the -o all information is written to stdout.

So
   curl -w %{time_total} URL >file.txt
Will give URL output and -w info in file.txt

but
   curl -o file.txt -w %{time_total} URL
Will give URL output in file.txt and -w info at stdout.

At this moment I use a (cmd) shell and the first method,
but with this method it is very hard to capture exit codes.

I am running under windows 2000 SP2 and using curl
7.9.8 build by Jörn Hartroth
(http://curl.haxx.se/download/curl-7.9.8-win32-ssl.zip)

Thank you for building/supplying cURL!

----------------------------------------------------------------------

You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100976&aid=614333&group_id=976

-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
Received on 2002-09-25