Creating or Removing Scheduled Tasks in Plesk

Creating or Removing Scheduled Tasks in Plesk

Creating or Removing Scheduled Tasks in Plesk

Some scripts / applications require certain scripts be run at a certain time to function properly.  On Windows servers, you can set them up to run at certain times by creating a schedule task (which is similar to how you can run cron jobs on Linux servers).

Creating a Scheduled Task in Plesk 10:

You can set up Scheduled Tasks in Plesk by doing the following:

  1. Log into Plesk*
  2. Click on the Websites & Domains tab.
  3. Click on Show Advanced Operations (a small grey link in the middle of the page), if the advanced options are not already shown.
  4. Click on Scheduled Tasks.
  5. Select the appropriate system user.
  6. Click on Schedule New Task.
  7. Fill out the form as follows:
    • Switched On:  Check the box to turn on the scheduled task.
    • Description:  A short description to remind you what this scheduled task does.
    • Scheduler Notification:  If you want an email every time this runs, select the appropriate option, otherwise select Do Not Send.  You may provide an email address where you want the notifications sent to.
    • Path to executable file:  Specify the path to the file you wish to execute.  For Windows servers, it would be something like this:
      C:\Inetpub\vhosts\mydomain.tld\httpdocs\myscript.php
      For Linux servers with Plesk, ir would be something like this:
      /var/www/vhosts/domain.tld/httpdocs/myscript.php
      Replace domain.tld with your domain name, and myscript.php with the appropriate subfolder(s) (if any) and filename.
    • Task Priority:  Select Low, Normal or High.
    • Specify when to run your command by selecting the appropriate checkboxes in the Hours, Days of month, Months or Days of week fields.
    • Click OK to schedule the task or click Run Now to schedule the task and immediately run it.
  8. You will be taken back to the Scheduled Tasks screen and you should see your new scheduled task listed at the bottom.

Removing a Scheduled Task in Plesk 10

  1. Logging into Plesk*
  2. Click on the Websites & Domains tab.
  3. Click on Show Advanced Operations (a small grey link in the middle of the page), if the advanced options are not already shown.
  4. Click on Scheduled Tasks.
  5. Select the appropriate system user.
  6. Check the box next to the Scheduled Task you want to remove.
  7. Click on the Remove button.
  8. It will load a new page and ask if you really want to deleted it.  Check the Confirm Removal box and click on the OK button.
  9. You will be taken back to the Scheduled Tasks screen and it should say: "Information: Scheduled tasks were removed."

Notes

*The user you are logging in with should have enough permissions to create a scheduled task.  Windows Shared customers automatically have permission, and the Admin user for Windows Dedicated Servers automatically have permission.  Additional users created by the Admin on a Windows Dedicated Server may or may not have permission to setup scheduled tasks, depending on what permissions you give them.

    • Related Articles

    • Resource Monitoring with Plesk

      Monitoring the resource usage on the server is vital to properly managing the system and your hosted accounts. To check the resource usage on the server you first need to log into the Plesk as the admin user. Once logged in, click Health and ...
    • Creating RDP user under Windows

      in Order to create RDP user account under windows , RDP to the server/vm  Open Server Manager > hover tools > click on 'Computer Management' > click on users&groups > click on users > right click on it to create a new user > and click on user > enter ...
    • Windows Plesk DNS and Private Nameservers

      Plesk Manages DNS within the domain interface within Plesk.  When adding a domain, if you choose the option to allow Plesk to add the default records for you, it will create all required DNS entries.  Custom entries can also be created as required. ...
    • Dedicated IP with Plesk Reseller Hosting

      Unfortunately, with the depletion of IPv4 IP addresses globally, these really are not as readily available as they once used to be and each usage needs to be absolutely justified you can read more about IPv4 depletion here ...
    • Import Database into Plesk

      How to import a MSSQL database - Windows Shared This process cannot be done via the MSSQL client. Instead, it must be completed inside of the control panel using these steps: Create a blank MSSQL database. Restore the Blank Database With the Database ...