curl-users
Re: write format
Date: Thu, 23 Jun 2005 19:00:04 -0400
thanks a lot!
i found the problem. the difference is u use "-o /dev/null" while i use
"> /dev/null"
if i execute
# curl -s -w "%{speed_download}%{time_total}\n" --range 0-100
http://ele.uri.edu > /dev/null
the nothing will come out since -s kill the regular output and -w goes
to stdout!
i am think if the -w is specified, should this goto stderr as same as
the normal print which can be turn off by -s? (i did not read the code
but a 2>/dev/null confirm my guess)
one usage here is people might need use pipe to process the fetched
content while use another pipe to process the performance data. so mix
them might not be a good idea. :P
ming
On Fri, 2005-06-24 at 00:43 +0200, Daniel Stenberg wrote:
> On Thu, 23 Jun 2005, Ming Zhang wrote:
>
> > I do not know why i always can not get write out format. could anybody give
> > me a hint? thanks
>
> What curl version?
>
> I just did this with curl 7.14.0:
>
> $ curl -s -w '%{speed_download} %{time_total}\n' curl.haxx.se -o /dev/null
> 53093.000 0.271
>
- application/pgp-signature attachment: This is a digitally signed message part