V
V
Victor Smolsky2017-02-02 13:02:35
PHP
Victor Smolsky, 2017-02-02 13:02:35

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

3 answer(s)
A
Andrey Burov, 2017-02-02
@simplysiteru

* */02 * * *means any minute at an even hour.
indicate for example0 */2 * * *

V
Viktor Smolsky, 2017-02-02
@simplysiteru

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.

C
cssfish, 2017-09-02
@Skaam

google how to make two columns, there will be more sense than bootstrap.
so as not to scare negative margins, here is the calc option
https://jsfiddle.net/zx30Luey/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question