In Plesk, you can easily manage your scheduled tasks (also known as cron jobs), whether you need to edit an existing task or delete it.
Follow the steps below to make changes to your scheduled tasks.
Step 1: Log in to Plesk
- Open your web browser and navigate to your Plesk login page:
- Example:
https://yourdomain.com:8443
orhttps://your-server-ip:8443
.
- Example:
- Enter your username and password, then click Log In.
Step 2: Access the Scheduled Tasks Section
- After logging in, go to the Tools & Settings tab (for admins) or the Websites & Domains tab (for individual users).
- Scroll down to the Server Management section (admin view) or Domain section (user view).
- Find and click on Scheduled Tasks.
Step 3: Edit a Scheduled Task
- In the Scheduled Tasks section, you'll see a list of all the scheduled tasks you have created.
- Find the task that you want to edit and click on the Edit button next to it.
- This will open the task settings page where you can modify the details of the task.
- Edit the task:
- Command: You can change the command or script path that is executed by the task.
- Schedule: Adjust the frequency or timing of the task (minute, hour, day of the month, etc.).
- Mail Output: Update the email address for task notifications or adjust mail settings.
- Priority: If needed, change the priority level for the task.
- Once you've made the necessary changes, click OK or Save to update the scheduled task.
Step 4: Delete a Scheduled Task
- If you no longer need a scheduled task, you can easily delete it.
- In the Scheduled Tasks section, find the task you want to delete.
- Click on the Delete button next to the task.
- A confirmation dialog will appear asking if you're sure you want to delete the task.
- Click Yes or OK to confirm.
- The task will be removed from the list of scheduled tasks.
Step 5: Verify Changes
- After editing or deleting a scheduled task, verify that the changes were applied correctly.
- For edits: You can check if the task runs at the new scheduled time or executes with the updated command.
- For deletions: Ensure that the task no longer appears in the list of scheduled tasks.
Additional Tips
- Logs: If you're editing a task related to script execution, check the logs for that script or command to ensure it executes correctly after changes.
- Testing: If you're unsure about the edits, you can always test the task by manually running the command or script first to ensure it works as expected.
- Permissions: Ensure that any scripts or commands being edited or deleted have the correct permissions to execute and access necessary resources.
- Email Output: If you're using email output for notifications, check your inbox for error messages or logs after executing a task.
Editing or deleting scheduled tasks in Plesk is a simple process. By following these steps, you can easily modify or remove tasks that are no longer needed, ensuring that your server and websites run smoothly without unnecessary or incorrect automated processes.