M
M
Maxim Vasilchenko2016-01-29 16:30:12
PHP
Maxim Vasilchenko, 2016-01-29 16:30:12

How to make cron run a script at the right hours?

Good afternoon!
tell me what's wrong!
*/15 7,8,21,22 * * * wget -qO- ' http://website.ru/post.php?key=key ' DOES NOT WORK every 15 minutes during the specified hours (
and so
*/15 * * * * wget -qO- ' http://site.ru/post.php?key=key ' all ok
Why doesn't it work during the specified hours?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Andrey, 2016-01-29
@VladimirAndreev

date shows correct time?

D
Dimonchik, 2016-01-29
@dimonchik2013

write the minutes explicitly, plus avoid the multiplicity of 60,
i.e. 14, 29, 44, 59 7,8,21,22 * * * wget -qO- ' http://site.ru/post.php?key=key

M
Maxim Vasilchenko, 2016-01-29
@maksim_vasil4enko

Decided
*/15 replaced with 15,30,45

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question