{"id":5418,"date":"2018-07-31T05:21:29","date_gmt":"2018-07-31T05:21:29","guid":{"rendered":"https:\/\/www.truehost.co.ke\/support\/?post_type=ht_kb&#038;p=5418"},"modified":"2024-06-07T13:03:37","modified_gmt":"2024-06-07T13:03:37","password":"","slug":"create-cron-jobs","status":"publish","type":"docs","link":"https:\/\/truehost.com\/support\/knowledge-base\/create-cron-jobs\/","title":{"rendered":"How to create Cron jobs"},"content":{"rendered":"<p align=\"justify\">Cron is a time scheduled task in a UNIX system. It\u2019s a series of tasks that the system runs from a script. It is a good way to carry out repetitive tasks efficiently. To set-up a cron job, access <em><b>cPanel &gt;&gt;<\/b><\/em><em><b>&gt;<\/b><\/em><em><b> Home &gt;&gt;<\/b><\/em><em><b>&gt;<\/b><\/em><em><b> Advanced &gt;&gt;<\/b><\/em><em><b>&gt;<\/b><\/em><em><b>Cron Jobs.<\/b><\/em><\/p>\n<p align=\"justify\">\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-5419\" src=\"https:\/\/www.truehost.co.ke\/support\/wp-content\/uploads\/2018\/07\/1-1.png\" alt=\"\" width=\"942\" height=\"178\" srcset=\"https:\/\/truehost.com\/support\/wp-content\/uploads\/2018\/07\/1-1.png 942w, https:\/\/truehost.com\/support\/wp-content\/uploads\/2018\/07\/1-1-300x57.png 300w, https:\/\/truehost.com\/support\/wp-content\/uploads\/2018\/07\/1-1-768x145.png 768w, https:\/\/truehost.com\/support\/wp-content\/uploads\/2018\/07\/1-1-50x9.png 50w, https:\/\/truehost.com\/support\/wp-content\/uploads\/2018\/07\/1-1-920x174.png 920w, https:\/\/truehost.com\/support\/wp-content\/uploads\/2018\/07\/1-1-600x113.png 600w, https:\/\/truehost.com\/support\/wp-content\/uploads\/2018\/07\/1-1-320x60.png 320w\" sizes=\"auto, (max-width: 942px) 100vw, 942px\" \/><\/p>\n<p align=\"justify\"><em>Here you will be able to define the cron task by filling in the boxes <\/em><em>as shown below. <\/em><em>You will define day and the time when the cron will be executed and also the command that will be run to execute the task. The drop down list on each text box helps in defining the times in a friendly manner.<\/em><\/p>\n<p align=\"justify\">\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-5420\" src=\"https:\/\/www.truehost.co.ke\/support\/wp-content\/uploads\/2018\/07\/2-1.png\" alt=\"\" width=\"678\" height=\"532\" srcset=\"https:\/\/truehost.com\/support\/wp-content\/uploads\/2018\/07\/2-1.png 678w, https:\/\/truehost.com\/support\/wp-content\/uploads\/2018\/07\/2-1-300x235.png 300w, https:\/\/truehost.com\/support\/wp-content\/uploads\/2018\/07\/2-1-50x39.png 50w, https:\/\/truehost.com\/support\/wp-content\/uploads\/2018\/07\/2-1-600x471.png 600w, https:\/\/truehost.com\/support\/wp-content\/uploads\/2018\/07\/2-1-320x251.png 320w\" sizes=\"auto, (max-width: 678px) 100vw, 678px\" \/><\/p>\n<p align=\"justify\"><em>You can add a <\/em><em>C<\/em><em>ron email where notifications regarding cron tasks will be sent after they run. <\/em><em>To do this simply enter the email address in the text box labelled Email then press Update email.<\/em><\/p>\n<p align=\"justify\">\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-5421\" src=\"https:\/\/www.truehost.co.ke\/support\/wp-content\/uploads\/2018\/07\/3.png\" alt=\"\" width=\"1364\" height=\"301\" srcset=\"https:\/\/truehost.com\/support\/wp-content\/uploads\/2018\/07\/3.png 1364w, https:\/\/truehost.com\/support\/wp-content\/uploads\/2018\/07\/3-300x66.png 300w, https:\/\/truehost.com\/support\/wp-content\/uploads\/2018\/07\/3-768x169.png 768w, https:\/\/truehost.com\/support\/wp-content\/uploads\/2018\/07\/3-1024x226.png 1024w, https:\/\/truehost.com\/support\/wp-content\/uploads\/2018\/07\/3-50x11.png 50w, https:\/\/truehost.com\/support\/wp-content\/uploads\/2018\/07\/3-920x203.png 920w, https:\/\/truehost.com\/support\/wp-content\/uploads\/2018\/07\/3-600x132.png 600w, https:\/\/truehost.com\/support\/wp-content\/uploads\/2018\/07\/3-320x71.png 320w\" sizes=\"auto, (max-width: 1364px) 100vw, 1364px\" \/><\/p>\n<p align=\"justify\"><em>If you wish to disable email address for all cron tasks, simply remove the email address. I you wish to disable notifications for a particular cron task, follow the steps blow:<\/em><\/p>\n<ol>\n<li>\n<p align=\"justify\"><em>Locate the following string:<\/em><\/p>\n<\/li>\n<\/ol>\n<pre class=\"western\">0 * * * * \/home\/user\/backup.pl<\/pre>\n<ol start=\"2\">\n<li>Add the following string to that line:\n<pre class=\"western\">\/dev\/null 2&gt;&amp;1<\/pre>\n<\/li>\n<li>Save your changes.<\/li>\n<\/ol>\n<p align=\"justify\">To view existing cron jobs, simply check the table Current cron jobs.<\/p>\n<p align=\"justify\">To edit a cron task, locate the cron job, click Edit and change the settings you want. Once through, click on Edit Line.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Cron is a time scheduled task in a UNIX system. It\u2019s a series of tasks that the system runs from a script. It is a good way to carry out repetitive tasks efficiently. To set-up a cron job, access cPanel &gt;&gt;&gt; Home &gt;&gt;&gt; Advanced &gt;&gt;&gt;Cron Jobs. Here you will be able to define the cron [&hellip;]<\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"_eb_attr":"","_exactmetrics_skip_tracking":false,"footnotes":""},"doc_category":[],"doc_tag":[],"class_list":["post-5418","docs","type-docs","status-publish","hentry"],"year_month":"2026-11","word_count":237,"total_views":"49","reactions":{"happy":"0","normal":"0","sad":"0"},"author_info":{"name":"w m","author_nicename":"wm","author_url":"https:\/\/truehost.com\/support\/author\/wm\/"},"doc_category_info":[],"doc_tag_info":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.7 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to create Cron jobs -<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/truehost.com\/support\/knowledge-base\/create-cron-jobs\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to create Cron jobs -\" \/>\n<meta property=\"og:description\" content=\"Cron is a time scheduled task in a UNIX system. It\u2019s a series of tasks that the system runs from a script. It is a good way to carry out repetitive tasks efficiently. To set-up a cron job, access cPanel &gt;&gt;&gt; Home &gt;&gt;&gt; Advanced &gt;&gt;&gt;Cron Jobs. Here you will be able to define the cron [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/truehost.com\/support\/knowledge-base\/create-cron-jobs\/\" \/>\n<meta property=\"article:modified_time\" content=\"2024-06-07T13:03:37+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.truehost.co.ke\/support\/wp-content\/uploads\/2018\/07\/1-1.png\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/truehost.com\\\/support\\\/knowledge-base\\\/create-cron-jobs\\\/\",\"url\":\"https:\\\/\\\/truehost.com\\\/support\\\/knowledge-base\\\/create-cron-jobs\\\/\",\"name\":\"How to create Cron jobs -\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/truehost.com\\\/support\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/truehost.com\\\/support\\\/knowledge-base\\\/create-cron-jobs\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/truehost.com\\\/support\\\/knowledge-base\\\/create-cron-jobs\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.truehost.co.ke\\\/support\\\/wp-content\\\/uploads\\\/2018\\\/07\\\/1-1.png\",\"datePublished\":\"2018-07-31T05:21:29+00:00\",\"dateModified\":\"2024-06-07T13:03:37+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/truehost.com\\\/support\\\/knowledge-base\\\/create-cron-jobs\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/truehost.com\\\/support\\\/knowledge-base\\\/create-cron-jobs\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/truehost.com\\\/support\\\/knowledge-base\\\/create-cron-jobs\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.truehost.co.ke\\\/support\\\/wp-content\\\/uploads\\\/2018\\\/07\\\/1-1.png\",\"contentUrl\":\"https:\\\/\\\/www.truehost.co.ke\\\/support\\\/wp-content\\\/uploads\\\/2018\\\/07\\\/1-1.png\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/truehost.com\\\/support\\\/knowledge-base\\\/create-cron-jobs\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/truehost.com\\\/support\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to create Cron jobs\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/truehost.com\\\/support\\\/#website\",\"url\":\"https:\\\/\\\/truehost.com\\\/support\\\/\",\"name\":\"\",\"description\":\"Help In a Click\",\"publisher\":{\"@id\":\"https:\\\/\\\/truehost.com\\\/support\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/truehost.com\\\/support\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/truehost.com\\\/support\\\/#organization\",\"name\":\"Truehost Kenya\",\"url\":\"https:\\\/\\\/truehost.com\\\/support\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/truehost.com\\\/support\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/truehost.com\\\/support\\\/wp-content\\\/uploads\\\/2026\\\/04\\\/cropped-image_2026-04-16_174808866.png\",\"contentUrl\":\"https:\\\/\\\/truehost.com\\\/support\\\/wp-content\\\/uploads\\\/2026\\\/04\\\/cropped-image_2026-04-16_174808866.png\",\"width\":240,\"height\":48,\"caption\":\"Truehost Kenya\"},\"image\":{\"@id\":\"https:\\\/\\\/truehost.com\\\/support\\\/#\\\/schema\\\/logo\\\/image\\\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to create Cron jobs -","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:\/\/truehost.com\/support\/knowledge-base\/create-cron-jobs\/","og_locale":"en_US","og_type":"article","og_title":"How to create Cron jobs -","og_description":"Cron is a time scheduled task in a UNIX system. It\u2019s a series of tasks that the system runs from a script. It is a good way to carry out repetitive tasks efficiently. To set-up a cron job, access cPanel &gt;&gt;&gt; Home &gt;&gt;&gt; Advanced &gt;&gt;&gt;Cron Jobs. Here you will be able to define the cron [&hellip;]","og_url":"https:\/\/truehost.com\/support\/knowledge-base\/create-cron-jobs\/","article_modified_time":"2024-06-07T13:03:37+00:00","og_image":[{"url":"https:\/\/www.truehost.co.ke\/support\/wp-content\/uploads\/2018\/07\/1-1.png","type":"","width":"","height":""}],"twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/truehost.com\/support\/knowledge-base\/create-cron-jobs\/","url":"https:\/\/truehost.com\/support\/knowledge-base\/create-cron-jobs\/","name":"How to create Cron jobs -","isPartOf":{"@id":"https:\/\/truehost.com\/support\/#website"},"primaryImageOfPage":{"@id":"https:\/\/truehost.com\/support\/knowledge-base\/create-cron-jobs\/#primaryimage"},"image":{"@id":"https:\/\/truehost.com\/support\/knowledge-base\/create-cron-jobs\/#primaryimage"},"thumbnailUrl":"https:\/\/www.truehost.co.ke\/support\/wp-content\/uploads\/2018\/07\/1-1.png","datePublished":"2018-07-31T05:21:29+00:00","dateModified":"2024-06-07T13:03:37+00:00","breadcrumb":{"@id":"https:\/\/truehost.com\/support\/knowledge-base\/create-cron-jobs\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/truehost.com\/support\/knowledge-base\/create-cron-jobs\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/truehost.com\/support\/knowledge-base\/create-cron-jobs\/#primaryimage","url":"https:\/\/www.truehost.co.ke\/support\/wp-content\/uploads\/2018\/07\/1-1.png","contentUrl":"https:\/\/www.truehost.co.ke\/support\/wp-content\/uploads\/2018\/07\/1-1.png"},{"@type":"BreadcrumbList","@id":"https:\/\/truehost.com\/support\/knowledge-base\/create-cron-jobs\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/truehost.com\/support\/"},{"@type":"ListItem","position":2,"name":"How to create Cron jobs"}]},{"@type":"WebSite","@id":"https:\/\/truehost.com\/support\/#website","url":"https:\/\/truehost.com\/support\/","name":"","description":"Help In a Click","publisher":{"@id":"https:\/\/truehost.com\/support\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/truehost.com\/support\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/truehost.com\/support\/#organization","name":"Truehost Kenya","url":"https:\/\/truehost.com\/support\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/truehost.com\/support\/#\/schema\/logo\/image\/","url":"https:\/\/truehost.com\/support\/wp-content\/uploads\/2026\/04\/cropped-image_2026-04-16_174808866.png","contentUrl":"https:\/\/truehost.com\/support\/wp-content\/uploads\/2026\/04\/cropped-image_2026-04-16_174808866.png","width":240,"height":48,"caption":"Truehost Kenya"},"image":{"@id":"https:\/\/truehost.com\/support\/#\/schema\/logo\/image\/"}}]}},"_links":{"self":[{"href":"https:\/\/truehost.com\/support\/wp-json\/wp\/v2\/docs\/5418","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/truehost.com\/support\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/truehost.com\/support\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/truehost.com\/support\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/truehost.com\/support\/wp-json\/wp\/v2\/comments?post=5418"}],"version-history":[{"count":1,"href":"https:\/\/truehost.com\/support\/wp-json\/wp\/v2\/docs\/5418\/revisions"}],"predecessor-version":[{"id":5422,"href":"https:\/\/truehost.com\/support\/wp-json\/wp\/v2\/docs\/5418\/revisions\/5422"}],"wp:attachment":[{"href":"https:\/\/truehost.com\/support\/wp-json\/wp\/v2\/media?parent=5418"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/truehost.com\/support\/wp-json\/wp\/v2\/doc_category?post=5418"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/truehost.com\/support\/wp-json\/wp\/v2\/doc_tag?post=5418"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}