A
A
Ambrel2018-07-09 11:29:55
Task Schedulers
Ambrel, 2018-07-09 11:29:55

Cron every 30 seconds?

In general, I have such a question, who really knows the hosting that has cron? So that you can run one file every 30 seconds.
Or how to do so? To have the file run every 30 seconds.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexander Aksentiev, 2018-07-09
@Ambrel

Cron is at least a minute.
Once every 30 seconds, this means running a script every minute that does something, then sleeps for 30 seconds and does it again.

R
RidgeA, 2018-07-09
@RidgeA

* * * * * <your task>
* * * * * sleep 30 && <your task>

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question