Answer the question
In order to leave comments, you need to log in
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
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.
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)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question