Articles in this section

How to set up a task to be executed every X minutes on a Plesk server?

Plesk for Windows kb: how-to Plesk for Linux ABT: Group B

Applicable to:

  • Plesk for Linux
  • Plesk for Windows

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.

  1. Log in to Plesk.

  2. Go to Tools & Settings > Scheduled Tasks, press the Add Task button to create a new task or click the already existing task.

  3. Select the Cron style in the drop-down menu opposite the Run directive:

  4. 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:

      CONFIG_TEXT: * * * * *

    • every 2 minutes:

      CONFIG_TEXT: */2 * * * *

    • every 5 minutes:

      CONFIG_TEXT: */5 * * * *

    • every 30 minutes:

      CONFIG_TEXT: */30 * * * *

    Windows
    • every minute:

      CONFIG_TEXT: * * * * *

    • every 2 minutes:

      CONFIG_TEXT: 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:

      CONFIG_TEXT: 0,5,10,15,20,25,30,35,40,45,50,55 * * * *

    • every 30 minutes:

      CONFIG_TEXT: 0,30 * * * *

Was this article helpful?

Comments

0 comments

Please sign in to leave a comment.