Wget、失敗、またはタイムアウト後の再試行の中断

Wget、失敗、またはタイムアウト後の再試行の中断

wgetを使用してURLを呼び出します。

/usr/bin/wget --read-timeout=7200 https://site_url/s

この場合、Wgetはタイムアウト設定にもかかわらず、15分ごとにGET要求を実行します。なぜこれが起こるのですか?

この呼び出しは一度だけ行うことができます。 wgetを「再試行なし」に設定する方法は?
設定できることはわかりますが、t=n0は無限大で、1は私が望むものより1が多いです。

ベストアンサー1

マニュアルページをもう一度お読みください:

   -t number
   --tries=number
       Set number of tries to number. Specify 0 or inf for infinite
       retrying.  The default is to retry 20 times, with the exception
       of fatal errors like "connection refused" or "not found" (404),
       which are not retried.

-t再試行回数ではなく試行回数(試行)を定義するために使用されます。

おすすめ記事