Plesk for Linux
kb: how-to
ABT: Group A
Applicable to:
- Plesk for Linux
Question
How to add a scheduled task in Plesk UI using crontab syntax?
Answer
-
Navigate to Domains > example.com > Scheduled tasks or Tools & Settings > Scheduled Tasks.
-
Click Add task and set specify Run parameter to Cron style.
-
Fill in the Run text field with cron-style time syntax, for example:
CONFIG_TEXT: * */4 * * *
-
Fill in the Command text field with the cron command, for example:
CONFIG_TEXT: /usr/bin/echo "my message"
Comments
5 comments
There is no such menu in domains. Scheduled tasks or Tools & Settings > Scheduled Tasks does not exist there
"Scheduled task" menu is missing because it was disabled in your service plan. Please contact Plesk server administrator and ask him to enable this menu.
how can we run cron job between 9 to 5 pm every hour
Hi Steel Bis,
This should be checked directly with Cron schedule syntax, see here: https://crontab.guru/#0_9-17_*_*_*
Hi, I have a lack of knowledge on how to set up the Scheduled task when using a Ruby app.
In my app I create a rake task to execute an update and I want to call it using the command option.
Let's say my rake task is database:update.
How should I write the command in order to configure properly my Scheduled task ?
Thanks.
Please sign in to leave a comment.