Answer the question
In order to leave comments, you need to log in
Why does cron loop after the first execution?
Good afternoon,
For what reason can cron execute a php script every minute, if in the settings every 2 hours. Moreover, every minute after launch for 1 hour, then an hour of silence... The script is long, it takes longer than 1-3 minutes to complete the task (curl on long proxies)
Where can I read about such behavior of cron?
* */02 * * * wget -q -O - ' https://www.site.org/path/file.php ' >> /path/log_cron.log && >/dev/null 2>&1
Start execution 02 Feb 2017 00:00:01 Run
start 02 Feb 2017 00:01:02 Run
start 02 Feb 2017 00:02:01
... Run
start 02 Feb 2017 00:59:01 Run
start 02 Feb 2017 03:00:01
Start of execution 02 Feb 2017 03:01:01
Run start 02 Feb 2017 03:02:01
... Run
start 02 Feb 2017 03:58:01 Run
start 02 Feb 2017 03:59:01 Run
start 02 Feb 2017 06:00:01
... Run
start 02 Feb 2017 06:58:01
Start execution 02 Feb 2017 06:59:01
Answer the question
In order to leave comments, you need to log in
* */02 * * *
means any minute at an even hour.
indicate for example0 */2 * * *
Andrey, unfortunately, I install the setting through ISP Panel 4
and the line that I wrote is displayed in the list of tasks. Searches for a physical crontab file for a particular user of this panel have not been successful.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question