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




  • Avatar
    Chad Thornburg

    Hello!  The example provided is not clear and only works because "every 30 minutes" is equivalent to two executions - at :00 and :30 of the hour.  However, if you took this same command and wanted to edit it to every 2 minutes for example, somebody might try to use the cron-style (Windows): 0,2**** , but this is not correct.  This would only run the task at :00 and :02 of the hour.  To run a task every 2 minutes, you would need to use the following cron-style (Windows): 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 * * * *

    Can you please review this article and update it if necessary to clarify the correct format for every x minutes?


    Comment actions Permalink
  • Avatar
    Nikita Nikushkin

    Hi @Chad Thornburg,

    Indeed, 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

    So, your examples are correct and I added them to the article. Thank you!


    Comment actions Permalink

Please sign in to leave a comment.

Have more questions? Submit a request