P
P
Peter2015-06-18 19:33:24
PHP
Peter, 2015-06-18 19:33:24

How to make a cron job run every minute, but from 8 to 9 am daily?

Hi

I'm setting up the execution of the script by cron on the hosting.
You need to execute the script according to the following schedule:

  • Once every 30 seconds
  • 8 am to 9 am
  • Daily


Is it possible?

Thanks

30197e1665ef4f5fba4d8fbb3559b557.png

Answer the question

In order to leave comments, you need to log in

3 answer(s)
H
He11ion, 2015-06-18
@He11ion

Once every 30 seconds, it won’t come out directly (well, except for the trick with sleep), and the rest is crontab -e , there is usually a hint there even where to write

T
tplus, 2015-06-18
@tplus

In the heading "every minute"
* 8,9 * * * echo cron
About 30 seconds, an explanation is here:
stackoverflow.com/questions/9619362/running-a-cron...

D
Dmitry Shinkar, 2015-06-19
@DeadCowsDontMoo

About 30 seconds I will not say, I do not know. For the rest , this article should help.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question