curl-users
Obtaining curl progress meter stats interval
Date: Thu, 29 May 2014 12:49:56 -0400
Hi all,
I've been digging around all morning on a way to obtain curl transfer stats
on a interval basis:
AKA:
curl -o /dev/null https://example.com/300GB
Save:
% Total % Received % Xferd Average Speed Time Time Time
Current
Dload Upload Total Spent Left
Speed
0 3709M 0 18.2M 0 0 12.8M 0 0:04:48 0:00:01 0:04:47
13.8M^C
to a file and write to the file every x seconds. Or even printing to the
terminal every 5 seconds or so:
% Total % Received % Xferd Average Speed Time Time Time
Current
Dload Upload Total Spent Left
Speed
0 3709M 0 18.2M 0 0 12.8M 0 0:04:48 0:00:01 0:04:47
13.8M^C
% Total % Received % Xferd Average Speed Time Time Time
Current
Dload Upload Total Spent Left
Speed
0 3709M 0 18.2M 0 0 12.8M 0 0:04:48 0:00:01 0:04:47
13.8M^C
...
Is this possible? I'm trying to do this to graph some of the values of the
really large download.
Thanks
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-users
FAQ: http://curl.haxx.se/docs/faq.html
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2014-05-29