Does WGET timeout?

前端 未结 4 1293
一生所求
一生所求 2020-12-13 01:26

I\'m running a PHP script via cron using Wget, with the following command:

wget -O - -q -t 1 http://www.example.com/cron/run

The script wil

4条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-13 01:57

    The default timeout is 900 second. You can specify different timeout.

    -T seconds
    --timeout=seconds
    

    The default is to retry 20 times. You can specify different tries.

    -t number
    --tries=number
    

    link: wget man document

提交回复
热议问题