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 will take a maximum of 5-6 minutes to do its processing. Will WGet wait for it and give it all the time it needs, or will it time out?
According to the man page of wget, there are a couple of options related to timeouts — and there is a default read timeout of 900s — so I say that, yes, it could timeout.
Here are the options in question :
And for those three options :
I suppose using something like
should make sure there is no timeout before longer than the duration of your script.
(Yeah, that’s probably the most brutal solution possible ^^ )