Scheduled Tasks (cron job)

Scheduling Tasks (Windows)

If you need to run scripts on your hosting account at specific time, use the task scheduler in Plesk to make the system automatically run the scripts for you.

To schedule a task: 

  1. Go to Websites & Domains > Scheduled Tasks.
  2. Click Add Task.
  3. Leave the Active checkbox selected if you want your scheduled task to be active immediately after the creation.
  4. Type a name for your task in the Description field.
  5. In Notify, specify whether the scheduler should notify you when it runs this task. The following options are available:
    • Do not notify - do not notify you.
    • Send to the default email - send the notification to your default email address.
    • Send to the email I specify - send the notification to the email specified in the corresponding field. After selecting this option, you need to type the required email address in the field on the right.
  6. Specify which command or executable file to run. Type it into the Path to executable file input box. If you need to run the command with certain options, type them in the Arguments field.
    • If you want to run your own PHP script using the task scheduler, you need to specify the following path in the Path to executable file input box:
    • C:\Program Files (x86)\Parallels\Plesk\Additional\PleskPHP5\php.exe
    • and specify the script location in the Arguments field:
    • C:\Inetpub\vhosts\mydomain.tld\httpdocs\myscript.php
  7. Select the appropriate priority in the Task priority field. Task priority can be set to Low, Normal or High.
  8. Specify when to run your command by selecting the appropriate checkboxes in the Hours, Days of month, Months or Days of weekfields.
  9. Click OK to schedule the task or click Run Now to schedule the task and immediately run it.

To temporarily suspend execution of a scheduled task:. 

  1. Go to Websites & Domains > Scheduled Tasks.
  2. Choose a task that you want to suspend and click the corresponding link in the Description column.
  3. Clear the Switched on checkbox.
  4. Click OK.

To resume execution of scheduled task: 

  1. Go to Websites & Domains > Scheduled Tasks.
  2. Choose a task whose execution you want to resume and click the corresponding link in the Description column.
  3. Select the Switched on checkbox.
  4. Click OK.

To cancel a task: 

  1. Go to Websites & Domains > Scheduled Tasks.
  2. Select a checkbox to the left of the task that you want to cancel and click Remove.
  3. Confirm removal and click OK.
  • Email, SSL
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

URL Rewrite/mod_rewrite for Windows on IIS 7.x 8.x

For customers who are looking for a URL rewrite function (like Apache's mod_rewrite) on our...

Windows IIS Server - Reditect http:// to https://

Using the following code in your web.config file automatically redirects visitors to the HTTPS...

Enabling Cache on Your Windows Hosting Account using clientCache

With our Windows hosting accounts, you can create caching rules to enhance your website's speed...

Disabling Browser Cache on Windows Server static files

The following configuration sample adds an HTTP "Cache-Control: no-cache" header to the response,...

500 internal server error - How to Get detailed errors

By default, our Windows hosting accounts display a custom/generic error when applications...