Plesk

How to schedule a task in Plesk for Linux?

Question

How to schedule a task in Plesk for Linux?

Answer

There are two types of scheduled tasks in Plesk:

Click on a section to expand

How to schedule a Customer scheduled task from Plesk UI:

  1. Log in to Plesk
  2. Go to Websites & Domains > example.com > Scheduled Tasks > Add Task.
  3. In the Command field put the full path to the script to be executed.
  4. In the Run field set the the task execution time (an example is available here).
  5. Click OK to save changes.

How to schedule an Administrator scheduled task from Plesk UI:

  1. Log in to Plesk
  2. Go to Tools & Settings > Scheduled Tasks > Add Task.
  3. In the Command field, put the full path to the script to be executed.
  4. In the Run field, set the the task execution time.
  5. In the System user field, leave user as root or choose another system user to run the task:
  6. Click OK to save changes.

 

Additional information

Plesk documentation: Scheduling tasks

To do it through CLI (Command line interface), the crontab system utility can be used: crontab(1) — Linux manual page

Exit mobile version