我正在执行带有超时的cron作业,尝试并打印到电子邮件并获得
未找到错误404
。
我以固定的15分钟间隔运行cron作业,没有任何问题,但是使用超时并尝试无法使其正常工作。
wget --tries=5 --timeout=7200 -O- https://websalesdesign.com/dev/nightly.php?Backup
代码会运行一段时间然后停止。我得到的结果是:
Resolving websalesdesign.com... 66.198.240.12 Connecting to websalesdesign.com|66.198.240.12|:443... connected.
HTTP request sent, awaiting response... 404 Not Found
2019-04-16 09:25:03 ERROR 404: Not Found.
当我在下面尝试时,我收到以下电子邮件,但由于生成了日志文件,我知道它运行的前15分钟是
wget -O- --timeout=7200 https://websalesdesign.com/dev/nightly.php?Backup
Resolving www.websalesdesign.com... 66.198.240.12 Connecting to www.websalesdesign.com|66.198.240.12|:443... connected.
HTTP request sent, awaiting response... 503 Service Unavailable
2019-04-16 01:05:10 ERROR 503: Service Unavailable.