I'm trying to relay the stdout of wget
using net::ssh. Even though I have it setup like this:
ssh.exec! cmd do |ch, stream, data|
print data
end
I'm getting output like this:
0K .......... .......... .......... .......... .......... 1% 18.8M 0s
50K .......... .......... .......... .......... .......... 3% 23.7M 0s
100K .......... .......... .......... .......... .......... 4% 22.7M 0s
150K .......... .......... .......... .......... .......... 6% 23.8M 0s
When I expect everything to be printed on the same line with a thermometer progress bar. What am I doing wrong?
EDIT
This may actually have more to do with the remote process (in this case wget
) than my setup. When running locally I get output that looks like this:
100%[============================>] 3,208,462 7.65M/s in 0.4s
Which is quite different than what I'm getting via ssh.