[Linux][自分用メモ] curlの進捗を非表示にする方法。

AIX、UNIX、Linux

manをちゃんと読まんとアカンですね・・・

-s, --silent
Silent or quiet mode. Don't show progress meter or error messages.  Makes Curl mute.
It  will  still output the data you ask for, potentially even to the terminal/stdout
unless you redirect it.

-S, --show-error
When used with -s it makes curl show an error message if it fails.
POINT

完全に非表示にするには-s、エラーが発生した場合出力する場合は-S

cURL – How To Use (マニュアルページ日本語訳) /
http://www.hcn.zaq.ne.jp/___/unix/curl_manpage.html

タイトルとURLをコピーしました