我试图在脚本中使用cURL,并使其不显示进度条
我尝试了-s、-silent、-s和-quiet选项,但都不起作用
下面是我尝试过的一个典型命令:
curl-shttp://google.com &燃气轮机;temp.html
我只在将进度条推送到文件时才获得进度条,因此curl-shttp://google.com没有进度条,但是curl-shttp://google.com &燃气轮机;temp.html
curl-shttp://google.com &燃气轮机;temp.html
适用于Ubuntu9.10上的curl版本7.19.5(无进度条)。但是,如果由于某种原因在您的平台上不起作用,您可以始终将stderr重定向到/dev/null:
curlhttp://google.com 2>/dev/null>;temp.html