从 16.04 命令行:
$ ssh [email protected] "curl http://192.168.8.5/tstat"
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- 0:00:01 --:--:-- 0{"temp":68.00,"tmode":2,"fmode":0,"override":0,"hold":0,"t_cool":82.00,"program_mode":1,"tstate":0,"fstate":0,"time":{"day":5,"hour":1100 164 0 164 0 0 101 0 --:--:-- 0:00:01 --:--:-- 101
为什么要返回速度表以及如何抑制这种情况?
答案1
这进度表可以使用下列-s / --silent
选项关闭静音功能:
ssh [email protected] "curl -s http://192.168.8.5/tstat"
# or
ssh [email protected] "curl --silent http://192.168.8.5/tstat"