On 18 May 2015, at 10:42, Jeff Weinberger <[email protected]> wrote:
> 
> take a timestamp right before and right after then do the speed calculation 
> from that. That's a pretty simple script.


You don’t need to write a script, curl has a speed_download field in -w

something like 

curl -w %{speed_download} -O  http://server.tld/path/to/file

Which will return a result in bytes/s

Rsync has --stats -h:

rsync --stats -h -a source target | tail -2 | head -1 |awk '{$print $7” “$8}'

-- 
I'd rather have my mind opened by wonder than closed by belief

_______________________________________________
MacOSX-talk mailing list
[email protected]
http://www.omnigroup.com/mailman/listinfo/macosx-talk

Reply via email to