Answer the question
In order to leave comments, you need to log in
How to run the crontab file on the server once every 30 seconds?
It is known that crontab files on the server are launched with a maximum frequency of 1 minute.
There is a need to run them every 30 seconds. Is it possible to solve this problem by running two files, but put a delay of 30 seconds on one. As a result, we get the execution of the file with an interval of 30 seconds.
So here's the question. Is it possible to specify in the instructions for running a file that it should be executed with a delay of 30 seconds? If this option is not possible, please indicate possible solutions.
Answer the question
In order to leave comments, you need to log in
You can try postponing like this:
* * * * * /var/www/somescript.sh
* * * * * ( sleep 30 ; /var/www/somescript.sh )
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question