S
S
saniii2019-08-12 06:24:23
Task Schedulers
saniii, 2019-08-12 06:24:23

How to set the script execution time in crontab from 8 am to 2 am?

*/30 8-02 * * * /usr/bin/php /home/user/Script/run.php

How to correctly specify the execution of a script in crontab from 8 am to 2 am? And am I right?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander, 2019-08-12
@NeiroNx

no - it won't work that way, 23 is the maximum. You need to do the second task with 0-2, because not all versions understand the double range 0-2.8-23, but you can try

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question