A
A
Alexander2016-11-23 22:26:07
PHP
Alexander, 2016-11-23 22:26:07

How to create a CRON request?

Connoisseurs, help me write a CRON request :) It is required to run the script every 5 minutes, but no more than 30 times in 12 hours :)) Is this possible at all?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
D
DuD, 2016-11-23
@SmoKE_xD

What is it like? Why not just run it less than 5 minutes, because it will work for you 30 times and get up for a while.
I recommend */24 * * * * command
Once every 24 minutes it will run, which means it will run 30 times every 12 hours.

P
Peter, 2016-11-23
@petermzg

So call the script every 5 minutes, but in the script itself, keep the number of runs for the current day.
Where you will store this value is up to you (file, database, remote service)

A
Alexey Skobkin, 2016-11-24
@skobkin

www.corntab.com

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question