{"id":5934,"date":"2019-07-06T07:20:33","date_gmt":"2019-07-06T07:20:33","guid":{"rendered":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/?p=5934"},"modified":"2019-07-06T07:20:33","modified_gmt":"2019-07-06T07:20:33","slug":"schedule-a-task-in-plesk-for-linux","status":"publish","type":"post","link":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/schedule-a-task-in-plesk-for-linux\/","title":{"rendered":"How to Schedule a Task in Plesk for Linux?"},"content":{"rendered":"<p>For your information there are two types of scheduled tasks in Plesk:<\/p>\n<p><strong>Customer scheduled task:<\/strong> Both Customers and Administrators can create this type of task. Its execution is based on behalf of a system user. With such tasks you don\u2019t get an access to the filesystem outside of the document root of the web site.<\/p>\n<p><strong>Administrator scheduled task:<\/strong> Only Administrators can create this type of task. Its execution is based on behalf of the root user. With such tasks you get write access to the whole filesystem.<\/p>\n<h3>Steps to Schedule a Customer Scheduled Task from Plesk UI:<\/h3>\n<p>1. Log in to Plesk.<\/p>\n<p>2. Navigate to <strong>Websites &amp; Domains &gt; example.com &gt; Scheduled Tasks &gt; Add Task<\/strong>.<\/p>\n<p>3. Enter the full path to the script to be executed in the <strong>Command<\/strong> field.<\/p>\n<p>4. Set the task execution time in the <strong>Run<\/strong> field (check an example here).<\/p>\n<p>5. Click on <strong>OK<\/strong> to save changes.<\/p>\n<h3>Steps to Schedule an Administrator Scheduled Task from Plesk UI:<\/h3>\n<p>1. Log in to Plesk.<\/p>\n<p>2. Navigate to <strong>Tools &amp; Settings &gt; Scheduled Tasks &gt; Add Task<\/strong>.<\/p>\n<p>3. Enter the full path to the script to be executed in the <strong>Command<\/strong> field.<\/p>\n<p>4. Set the task execution time in the <strong>Run<\/strong> field.<\/p>\n<p>5. Leave user as root in the <strong>System<\/strong> user field or select another system user to run the task:<\/p>\n<p>6. Click on <strong>OK<\/strong> to save changes.<\/p>\n<h3>Steps to Create\/Edit Scheduled Task from the Commands Line, SSH with a System User Account:<\/h3>\n<p>1. Log in to Plesk.<\/p>\n<p>2. Let the customer connect to the server via SSH on the page <strong>Plesk &gt; Subscriptions &gt; example.com &gt; Web Hosting.<\/strong><\/p>\n<p>3. Access and enable <strong>Access<\/strong> to the server over SSH.<\/p>\n<p>4. Using a system user account connect to the server over SSH.<\/p>\n<p>5. Run the below command to open <strong>crontab<\/strong> <strong>editor<\/strong>:<\/p>\n<pre class=\"lang:default decode:true \"># crontab -e<\/pre>\n<h3>Steps to Create\/Edit the Scheduled Task from the Command Line, SSH with &#8220;root&#8221; Account:<\/h3>\n<p>1. Using <strong>SSH<\/strong>, connect to the server.<\/p>\n<p>2. Execute the below command to open <strong>crontab<\/strong> <strong>editor<\/strong> for a specific user:<\/p>\n<p>3. Replace <strong>johndoe<\/strong> with the your preferred username.<\/p>\n<pre class=\"lang:default decode:true\"># crontab -e -u johnoe<\/pre>\n<p>4. Using <strong>cron<\/strong> file syntax, type in the <strong>cron<\/strong> task parameters. For example:<\/p>\n<pre class=\"lang:default decode:true\">* * * * * \/bin\/echo \"test\" &gt; \/tmp\/testfile<\/pre>\n<p>In this way, you can schedule a task in Plesk for Linux.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>For your information there are two types of scheduled tasks in Plesk: Customer scheduled task: Both Customers and Administrators can create this type of task. Its execution is based on behalf of a system user. With such tasks you don\u2019t get an access to the filesystem outside of the document root of the web site. [&hellip;]<\/p>\n","protected":false},"author":16,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10],"tags":[161,162,834],"class_list":["post-5934","post","type-post","status-publish","format-standard","placeholder-for-hentry","category-plesk-faq","tag-plesk","tag-plesk-control-panel","tag-schedule-a-task-in-plesk"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.2 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Discover the Steps to Scehdule a Task in Plesk for Linux<\/title>\n<meta name=\"description\" content=\"The article reveals the steps to schedule a task in Plesk for Linux.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/schedule-a-task-in-plesk-for-linux\/\" \/>\n<meta property=\"og:locale\" content=\"en_GB\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Discover the Steps to Scehdule a Task in Plesk for Linux\" \/>\n<meta property=\"og:description\" content=\"The article reveals the steps to schedule a task in Plesk for Linux.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/schedule-a-task-in-plesk-for-linux\/\" \/>\n<meta property=\"og:site_name\" content=\"Web Hosting FAQs by MilesWeb\" \/>\n<meta property=\"article:published_time\" content=\"2019-07-06T07:20:33+00:00\" \/>\n<meta name=\"author\" content=\"Pallavi Godse\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Pallavi Godse\" \/>\n\t<meta name=\"twitter:label2\" content=\"Estimated reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/schedule-a-task-in-plesk-for-linux\/\",\"url\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/schedule-a-task-in-plesk-for-linux\/\",\"name\":\"Discover the Steps to Scehdule a Task in Plesk for Linux\",\"isPartOf\":{\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#website\"},\"datePublished\":\"2019-07-06T07:20:33+00:00\",\"author\":{\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#\/schema\/person\/7e3952607fa9eb4e82fea9f7cad9c945\"},\"description\":\"The article reveals the steps to schedule a task in Plesk for Linux.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/schedule-a-task-in-plesk-for-linux\/#breadcrumb\"},\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/schedule-a-task-in-plesk-for-linux\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/schedule-a-task-in-plesk-for-linux\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Schedule a Task in Plesk for Linux?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#website\",\"url\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/\",\"name\":\"Web Hosting FAQs by MilesWeb\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-GB\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#\/schema\/person\/7e3952607fa9eb4e82fea9f7cad9c945\",\"name\":\"Pallavi Godse\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/eefc9695ea2b2c6e143c9c9919701aaa?s=96&d=blank&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/eefc9695ea2b2c6e143c9c9919701aaa?s=96&d=blank&r=g\",\"caption\":\"Pallavi Godse\"},\"description\":\"Pallavi is a Digital Marketing Executive at MilesWeb and has an experience of over 4 years in content development. She is interested in writing engaging content on business, technology, web hosting and other topics related to information technology.\",\"url\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/author\/pallavi\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Discover the Steps to Scehdule a Task in Plesk for Linux","description":"The article reveals the steps to schedule a task in Plesk for Linux.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/schedule-a-task-in-plesk-for-linux\/","og_locale":"en_GB","og_type":"article","og_title":"Discover the Steps to Scehdule a Task in Plesk for Linux","og_description":"The article reveals the steps to schedule a task in Plesk for Linux.","og_url":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/schedule-a-task-in-plesk-for-linux\/","og_site_name":"Web Hosting FAQs by MilesWeb","article_published_time":"2019-07-06T07:20:33+00:00","author":"Pallavi Godse","twitter_misc":{"Written by":"Pallavi Godse","Estimated reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/schedule-a-task-in-plesk-for-linux\/","url":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/schedule-a-task-in-plesk-for-linux\/","name":"Discover the Steps to Scehdule a Task in Plesk for Linux","isPartOf":{"@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#website"},"datePublished":"2019-07-06T07:20:33+00:00","author":{"@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#\/schema\/person\/7e3952607fa9eb4e82fea9f7cad9c945"},"description":"The article reveals the steps to schedule a task in Plesk for Linux.","breadcrumb":{"@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/schedule-a-task-in-plesk-for-linux\/#breadcrumb"},"inLanguage":"en-GB","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.milesweb.co.uk\/hosting-faqs\/schedule-a-task-in-plesk-for-linux\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/schedule-a-task-in-plesk-for-linux\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/"},{"@type":"ListItem","position":2,"name":"How to Schedule a Task in Plesk for Linux?"}]},{"@type":"WebSite","@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#website","url":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/","name":"Web Hosting FAQs by MilesWeb","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-GB"},{"@type":"Person","@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#\/schema\/person\/7e3952607fa9eb4e82fea9f7cad9c945","name":"Pallavi Godse","image":{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/eefc9695ea2b2c6e143c9c9919701aaa?s=96&d=blank&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/eefc9695ea2b2c6e143c9c9919701aaa?s=96&d=blank&r=g","caption":"Pallavi Godse"},"description":"Pallavi is a Digital Marketing Executive at MilesWeb and has an experience of over 4 years in content development. She is interested in writing engaging content on business, technology, web hosting and other topics related to information technology.","url":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/author\/pallavi\/"}]}},"views":671,"_links":{"self":[{"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/posts\/5934","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/users\/16"}],"replies":[{"embeddable":true,"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/comments?post=5934"}],"version-history":[{"count":1,"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/posts\/5934\/revisions"}],"predecessor-version":[{"id":5935,"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/posts\/5934\/revisions\/5935"}],"wp:attachment":[{"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/media?parent=5934"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/categories?post=5934"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/tags?post=5934"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}