I am reading a stream with curl and grep with some highlights. curl url | grep wish_key_word
I noticed that curl provides me with good download statistics, for example:
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 10.9M 0 10.9M 0 0 1008k 0 --:--:-- 0:00:11 --:--:-- 1092k
How to save statistics, for example. every second in a file?
I found this: http://curl.haxx.se/mail/archive-2002-11/0115.html , however it could not distract him from my problem.
curl -n agent.mtconnect.org/sample\?interval=0 -o xml_stream.log 2>> dl.log
dl.log should include statistics, but it doesn’t work.
source
share