Knowledge Base
MilesWeb / Plesk FAQ

How to Schedule a Task in Plesk for Linux?

Approx. read time : 3 min

For your information there are two types of scheduled tasks in Plesk:

Customer scheduled task: Both Customers and Administrators can create this type of task. Its execution is based on behalf of a system user. With such tasks you don’t get an access to the filesystem outside of the document root of the web site.

Administrator scheduled task: Only Administrators can create this type of task. Its execution is based on behalf of the root user. With such tasks you get write access to the whole filesystem.

Steps to Schedule a Customer Scheduled Task from Plesk UI:

1. Log in to Plesk.

2. Navigate to Websites & Domains > example.com > Scheduled Tasks > Add Task.

3. Enter the full path to the script to be executed in the Command field.

4. Set the task execution time in the Run field (check an example here).

5. Click on OK to save changes.

Steps to Schedule an Administrator Scheduled Task from Plesk UI:

1. Log in to Plesk.

2. Navigate to Tools & Settings > Scheduled Tasks > Add Task.

3. Enter the full path to the script to be executed in the Command field.

4. Set the task execution time in the Run field.

5. Leave user as root in the System user field or select another system user to run the task:

6. Click on OK to save changes.

Steps to Create/Edit Scheduled Task from the Commands Line, SSH with a System User Account:

1. Log in to Plesk.

2. Let the customer connect to the server via SSH on the page Plesk > Subscriptions > example.com > Web Hosting.

3. Access and enable Access to the server over SSH.

4. Using a system user account connect to the server over SSH.

5. Run the below command to open crontab editor:

Steps to Create/Edit the Scheduled Task from the Command Line, SSH with “root” Account:

1. Using SSH, connect to the server.

2. Execute the below command to open crontab editor for a specific user:

3. Replace johndoe with the your preferred username.

4. Using cron file syntax, type in the cron task parameters. For example:

In this way, you can schedule a task in Plesk for Linux.

Need help? We’re always here for you.