Question
How to set up a task to be executed:
- every minute
- every 2 minutes
- every 5 minutes
- every 30 minutes
on a Plesk server?
Answer
The cron format for setting time of the task execution can be used.
-
Go to Tools & Settings > Scheduled Tasks, press the Add Task button to create a new task or click the already existing task.
-
Select the Cron style in the drop-down menu opposite the Run directive:
-
Specify the required time in the cron format:
Note: using the "/" character is not allowed in Windows.
Instead of this, it's required to place a comma-separated list for each execution time.
If you try to use the "/" character, the next error will appear:
"Invalid crontab syntax"
Linux
-
every minute:
* * * * *
-
every 2 minutes:
*/2 * * * *
-
every 5 minutes:
*/5 * * * *
-
every 30 minutes:
*/30 * * * *
Windows
-
every minute:
* * * * *
-
every 2 minutes:
0,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38,40,42,44,46,48,50,52,54,56,58 * * * *
-
every 5 minutes:
0,5,10,15,20,25,30,35,40,45,50,55 * * * *
-
every 30 minutes:
0,30 * * * *
-