How to set up cron jobs (scheduled tasks) in Plesk.
This tutorial assumes that you have already logged in to Plesk.
Now let's learn how to set up Cron jobs from within Plesk.
Cron Jobs are actually called "cron daemons." They are used for
doing some tasks at specific intervals without your intervention every
time. You set the clock and the cron daemon runs the work for you.
Scroll down and right to the Additional Tools group.
Click Scheduled Tasks.
Select the system user under whom the command should be run.
Then click Next.
First, we need to specify the email address where the cron results will be delivered upon the completion. Click Preferences. Cronpreferences.JPG
Enter the email address in the box.
Click OK when finished.
That's it! Now let's add a new scheduled task. Click Schedule New Task.
The task is already switched On by default.
Let's fill out the parameters in the following order: Minutes, Hours, Day of Month, Month, Day of week.
Scroll down.
Now enter the actual cron command. Its syntax may differ
depending on the server's setup. You may clarify this information with
your hosting provider.
When ready, click OK to save the changes.
Success! The new cron task has been successfully set up. The
test.cgi script is set to be run every night at 11:30 p.m. without our
intervention, and its results are to be sent to info@demo1234.com email
address.
Now let's see how to switch the cron Off and how to delete it altogether.
Click the small icon to switch the cron Off.
That's it! Then select the cron by checking the box to the left.
Click Remove.
Select the checkbox to confirm the removal.
Then click OK.
The selected cron task has been successfully removed now. You
may add as many cron commands as needed following the instructions
provided in this tutorial.
This is the end of the tutorial. You now know how to set up a
scheduled cron task in Plesk. You should always remember to remove the
unnecessary crons so that there is no additional load on the server.