File transfer performance display?

Matthew Gillen me-5yx05kfkO/aqeI1yJSURBw at public.gmane.org
Tue Sep 30 14:59:05 EDT 2008


Derek Atkins wrote:
> Hey BLUers,
> 
> I used to be able to use curl to download some information, and it
> gives me some really nice transfer rate properties.  Unfortunately I
> can't use that method anymore.  So now I've got a process that
> effectively is:
> 
>   ssh host run-program > localfile
> 
> Unfortunately this doesn't give me any feedback about my download
> transfer rate.  I found a program called cstream, so using that I can
> do something like:
> 
>   ssh host run-program | cstream -T 5 -o localfile
> 
> This gives me output that looks like:
> 
> ...
> 132222700 B 126.1 MB 826.4 s (13:46 min) 159991 B/s 156.24 KB/s
> 132711520 B 126.6 MB 831.5 s (13:51 min) 159600 B/s 155.86 KB/s
> 133505134 B 127.3 MB 836.6 s (13:56 min) 159589 B/s 155.85 KB/s
> ...
> 
> This is the information I want, however it's output on
> consecutive lines.  So at 5 second intervals over an hour
> it will output 720 status lines.  That fills up my terminal
> buffer pretty quickly.
> 
> What I'd really like is something like the old curl (or scp)
> output that keeps the input on a single line.

Try "cstream -v 1" instead of "-T 5".  That will output the total data and
throughput at the end of the run.

Matt





More information about the Discuss mailing list