{"id":806,"date":"2017-02-20T12:46:14","date_gmt":"2017-02-20T12:46:14","guid":{"rendered":"https:\/\/www.xsofthost.com\/help\/?p=806"},"modified":"2017-02-20T12:51:03","modified_gmt":"2017-02-20T12:51:03","slug":"how-to-create-and-remove-scheduled-tasks-in-plesk","status":"publish","type":"post","link":"https:\/\/www.xsofthost.com\/help\/how-to-create-and-remove-scheduled-tasks-in-plesk\/","title":{"rendered":"How to Create and Remove Scheduled Tasks in Plesk"},"content":{"rendered":"<h2 class=\"subject2a\">What is Plesk Scheduled Task<\/h2>\n<p><strong>Scheduled Task<\/strong> is a tool provided by Plesk control panel that allow you to run scripts on your server at specific time, and make the system automatically run the scripts for you . indeed Scheduled Task in Plesk is matching cron jobs in cPanel control panel.<\/p>\n<h2 class=\"subject2a\">Creating a Scheduled Task in Plesk:<\/h2>\n<ol>\n<li>Login to your <strong>Plesk<\/strong> Control Panel.<\/li>\n<li>On your plesk dashboard click <strong>Websites &amp; Domains<\/strong> tab .<\/li>\n<li>Click on <strong>Show Advanced Operations<\/strong> and click <strong>Scheduled Tasks<\/strong>, <strong><span style=\"color: #ff0000;\">On different Plesk version <\/span><\/strong>Click on <strong>Scheduled Tasks <\/strong>located on the right top pane of the dashboard page.<\/li>\n<li>from the Scheduled Tasks Page , click <strong>Add Task <\/strong>or <strong>Schedule New Task link<\/strong>.<\/li>\n<li>Start adding the require fields:\n<ol>\n<li><strong>Active<\/strong> : select the active checkbox to make the new task active and running .<strong><span style=\"color: #ff0000;\">On different Plesk version <\/span>,Switched On\u00a0 <\/strong><\/li>\n<li><strong>Task type<\/strong>: you have three types for the task:<strong><span style=\"color: #ff0000;\"> On different Plesk version<\/span><\/strong> these options may not showing instead showing the <strong>Command textbox<\/strong> to fill only.\n<ol>\n<li class=\"listbullet2\"><strong>Run a command<\/strong>. Specify the full path to the executable file to be run. This includes binary files, shell scripts, and batch files.<\/li>\n<li class=\"listbullet2\"><strong>Fetch a URL<\/strong>. Specify the URL only, there is no need to type the command, such as curl or wget.<\/li>\n<li class=\"listbullet2\"><strong>Run a PHP script<\/strong>. Specify the path to the script relative to your virtual host directory. You can click the\u00a0<img loading=\"lazy\" src=\"https:\/\/www.xsofthost.com\/help\/wp-content\/uploads\/2017\/02\/Scheduled-Tasks-select-script-browse.png\" alt=\"Scheduled Tasks select script browse\" width=\"30\" height=\"30\" \/>icon to quickly locate the script file.<\/li>\n<\/ol>\n<\/li>\n<li><strong>Run<\/strong> : Specify the schedule time for example : Daily at 16 :00. <span style=\"color: #ff0000;\"><strong>On different Plesk version<\/strong><\/span> you have to fill\u00a0 the <strong class=\"specialbold\">Hours<\/strong>, <strong class=\"specialbold\">Days of month<\/strong>, <strong class=\"specialbold\">Months<\/strong> or <strong class=\"specialbold\">Days of week<\/strong> fields.<\/li>\n<li><strong>Description<\/strong> : type your scheduled task description.<strong><span style=\"color: #ff0000;\">On different Plesk version<\/span><\/strong> may not available.<\/li>\n<li><strong>Notify<\/strong>:<strong><span style=\"color: #ff0000;\">On different Plesk version<\/span><\/strong> may not available.\n<ol>\n<li><strong>Do not notify<\/strong>: no notification will sent to you\u00a0 at all.<\/li>\n<li><strong>Errors only<\/strong>: Notifications contain the command output and are sent only if the exit code is non-zero. Meaning when the scheduled task occurred , notification email will send depends on <strong>Send notifications to\u00a0<\/strong>that you specify , you can select<strong>\u00a0Subscription owner email<\/strong> or any <strong>Other users.<\/strong><\/li>\n<li><strong>Every time<\/strong>:Notifications contain the command output and are sent regardless of the command exit code. So each time the scheduled task run , it will send notification email\u00a0depends on <strong>Send notifications to\u00a0<\/strong>that you specify , you can select<strong>\u00a0Subscription owner email<\/strong> or any <strong>Other users.<\/strong><\/li>\n<\/ol>\n<\/li>\n<li>Now you have Option to <strong>Run Now button<\/strong> to save and run immediately\u00a0 ,\u00a0 or press <strong>Ok button<\/strong> to Save and leave the scheduled task to run on its schedule time.<\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<h2>Editing or Removing\u00a0 Scheduled Tasks (Cron Jobs) Within Plesk<\/h2>\n<p>To Edit or Remove the scheduled that already exists on your account :<\/p>\n<ol>\n<li>Login to your Plesk control panel.<\/li>\n<li>Click on <strong>Show Advanced Operations<\/strong> and click <strong>Scheduled Tasks<\/strong>, <strong><span style=\"color: #ff0000;\">On different Plesk version<\/span><\/strong> Click on <strong>Scheduled Tasks <\/strong>located on the right top pane of the dashboard page.<\/li>\n<li>From the list you can click the checkbox for each scheduled task row and then click <strong>Remove button<\/strong>.<\/li>\n<li>If you want to Edit the existing scheduled task , click the command name from the list and you can start edit the same fields that you already entered while adding process.<\/li>\n<li>The list also provide<strong> Run Now Link<\/strong> button to run the task immediately\u00a0\u00a0<\/li>\n<\/ol>\n<div class=\"well well-sm  oscitas-bootstrap-container text-red\">If you are unable to find the Scheduled Task link within your plesk account , its mean that your account or package has no permission to manage Scheduled Task.<\/div>\n<h2 class=\"subject2a\">Creating a Scheduled Task in Plesk Image Guide:<\/h2>\n<p>the screen shots showing how to add scheduled task on different plesk versions and view theme<\/p>\n<p><a class=\"lightbox-image-link\" title=\"Plesk add Scheduled Tasks.\" href=\"\/knowledgebase\/plesk-add-Scheduled-Tasks.png\" rel=\"lightbox[583]\" data-lightbox=\"roadtrip\"><img class=\"thumbnail\" src=\"\/knowledgebase\/plesk-add-Scheduled-Tasks.png\" alt=\"Plesk add Scheduled Tasks.\" \/><br \/>\n <\/a><\/p>\n<p>OR<\/p>\n<p><a class=\"lightbox-image-link\" title=\"Plesk add Scheduled Tasks.\" href=\"\/knowledgebase\/plesk-add-Scheduled-Tasks1.png\" rel=\"lightbox[583]\" data-lightbox=\"roadtrip\"><img class=\"thumbnail\" src=\"\/knowledgebase\/plesk-add-Scheduled-Tasks1.png\" alt=\"Plesk add Scheduled Tasks.\" \/><br \/>\n <\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>What is Plesk Scheduled Task Scheduled Task is a tool provided by Plesk control panel that allow you to run scripts on your server at specific time, and make the system automatically run the scripts for you . indeed Scheduled Task in Plesk is matching cron jobs in cPanel control panel. Creating a Scheduled Task [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":819,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[36],"tags":[38,37],"_links":{"self":[{"href":"https:\/\/www.xsofthost.com\/help\/wp-json\/wp\/v2\/posts\/806"}],"collection":[{"href":"https:\/\/www.xsofthost.com\/help\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.xsofthost.com\/help\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.xsofthost.com\/help\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.xsofthost.com\/help\/wp-json\/wp\/v2\/comments?post=806"}],"version-history":[{"count":19,"href":"https:\/\/www.xsofthost.com\/help\/wp-json\/wp\/v2\/posts\/806\/revisions"}],"predecessor-version":[{"id":827,"href":"https:\/\/www.xsofthost.com\/help\/wp-json\/wp\/v2\/posts\/806\/revisions\/827"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.xsofthost.com\/help\/wp-json\/wp\/v2\/media\/819"}],"wp:attachment":[{"href":"https:\/\/www.xsofthost.com\/help\/wp-json\/wp\/v2\/media?parent=806"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.xsofthost.com\/help\/wp-json\/wp\/v2\/categories?post=806"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.xsofthost.com\/help\/wp-json\/wp\/v2\/tags?post=806"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}