{"id":370,"date":"2016-06-27T16:32:54","date_gmt":"2016-06-27T16:32:54","guid":{"rendered":"http:\/\/cloudhost.com.ng\/blog\/?p=370"},"modified":"2016-06-27T16:36:32","modified_gmt":"2016-06-27T16:36:32","slug":"creating-cron-jobs-on-cpanel","status":"publish","type":"post","link":"https:\/\/cloudhost.com.ng\/blog\/creating-cron-jobs-on-cpanel\/","title":{"rendered":"Creating Cron Jobs on cPanel"},"content":{"rendered":"<p class=\"subject2blue\">Cron jobs are scheduled tasks that the system runs at already set\u00a0times or intervals. A\u00a0cron job generally contains a series of simple tasks that the system runs from \u00a0script file. The Cron Jobs feature\u00a0in cPanel is very useful when it comes to\u00a0setting up automated maintenance and other unmanned server duties. \u00a0For example, you could set a cron job to delete temporary files every week so that your disk space is not being used up by those files.<\/p>\n<h3><strong>To create a cron job:<\/strong><\/h3>\n<ol>\n<li>Log into cPanel.<\/li>\n<li>In the <em>Advanced<\/em> section, click <strong>Cron Jobs<\/strong>.<a href=\"http:\/\/cloudhost.com.ng\/blog\/wp-content\/uploads\/2016\/06\/Screenshot-86.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-371\" src=\"http:\/\/cloudhost.com.ng\/blog\/wp-content\/uploads\/2016\/06\/Screenshot-86.png\" alt=\"Screenshot (86)\" width=\"509\" height=\"187\" srcset=\"https:\/\/cloudhost.com.ng\/blog\/wp-content\/uploads\/2016\/06\/Screenshot-86.png 509w, https:\/\/cloudhost.com.ng\/blog\/wp-content\/uploads\/2016\/06\/Screenshot-86-300x110.png 300w\" sizes=\"(max-width: 509px) 100vw, 509px\" \/><\/a><\/li>\n<li>Under <em>Cron Email<\/em>, enter an email address for the system to send notifications when your cron job runs. Click <strong>Update Email<\/strong>.\u00a0You will receive an email after the cron job has finished.<a href=\"http:\/\/cloudhost.com.ng\/blog\/wp-content\/uploads\/2016\/06\/EMAIL.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-374\" src=\"http:\/\/cloudhost.com.ng\/blog\/wp-content\/uploads\/2016\/06\/EMAIL.png\" alt=\"EMAIL\" width=\"774\" height=\"218\" srcset=\"https:\/\/cloudhost.com.ng\/blog\/wp-content\/uploads\/2016\/06\/EMAIL.png 774w, https:\/\/cloudhost.com.ng\/blog\/wp-content\/uploads\/2016\/06\/EMAIL-300x84.png 300w, https:\/\/cloudhost.com.ng\/blog\/wp-content\/uploads\/2016\/06\/EMAIL-768x216.png 768w, https:\/\/cloudhost.com.ng\/blog\/wp-content\/uploads\/2016\/06\/EMAIL-624x176.png 624w\" sizes=\"(max-width: 774px) 100vw, 774px\" \/><\/a><\/li>\n<li>Under <em>Add New Cron Job<\/em>, use the <em>Common Settings<\/em> drop-down menu to choose from a list of regularly used intervals; or set the frequency of your cron job by using the drop-down box next to each time unit. Common settings range from every minute to once a year.<a href=\"http:\/\/cloudhost.com.ng\/blog\/wp-content\/uploads\/2016\/06\/Screenshot-88.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-375\" src=\"http:\/\/cloudhost.com.ng\/blog\/wp-content\/uploads\/2016\/06\/Screenshot-88.png\" alt=\"Screenshot (88)\" width=\"780\" height=\"337\" srcset=\"https:\/\/cloudhost.com.ng\/blog\/wp-content\/uploads\/2016\/06\/Screenshot-88.png 780w, https:\/\/cloudhost.com.ng\/blog\/wp-content\/uploads\/2016\/06\/Screenshot-88-300x130.png 300w, https:\/\/cloudhost.com.ng\/blog\/wp-content\/uploads\/2016\/06\/Screenshot-88-768x332.png 768w, https:\/\/cloudhost.com.ng\/blog\/wp-content\/uploads\/2016\/06\/Screenshot-88-624x270.png 624w\" sizes=\"(max-width: 780px) 100vw, 780px\" \/><\/a>\n<ul>\n<li><em>Common Settings<\/em>\u00a0\u2014 This menu allows you to select a commonly used interval. The system will configure the appropriate settings in the\u00a0<em>Minute<\/em>,\u00a0<em>Hour<\/em>,\u00a0<em>Day<\/em>,\u00a0<em>Month<\/em>, and\u00a0<em>Weekday<\/em>\u00a0text boxes for you.<\/li>\n<li><em>Minute<\/em>\u00a0\u2014 this allows you to select the number of minutes between each time the cron job runs, or the minute of each hour on which you wish to run the cron job.<\/li>\n<li><em>Hour<\/em>\u00a0\u2014 this allows you to select the number of hours between each time the cron job runs, or the hour of each day on which you wish to run the cron job.<\/li>\n<li><em>Day<\/em>\u00a0\u2014 this allows you\u00a0to select the number of days between each time the cron job runs, or the day of the month on which you wish to run the cron job.<\/li>\n<li><em>Month<\/em>\u00a0\u2014 this menu allows you\u00a0to select the number of months between each time the cron job runs, or the month of the year in which you wish to run the cron job.<\/li>\n<li><em>Weekday<\/em>\u00a0\u2014 this allows you\u00a0to select the days of the week on which you wish to run the cron job.<\/li>\n<\/ul>\n<\/li>\n<li>In the <em>Command<\/em> field, enter the desired command for the system to run.<\/li>\n<li>Click\u00a0<strong>Add New Cron Job<\/strong>.<\/li>\n<\/ol>\n<p style=\"padding-left: 30px\">You will be able to view your existing cron jobs under the <strong>Current Cron Jobs table<\/strong> that is displayed at the bottom of the page immediately a cron job is created.<\/p>\n<h3><\/h3>\n<h3><strong>To edit a Cron Job:<\/strong><\/h3>\n<p>To edit a cron job, perform the following steps:<\/p>\n<ol>\n<li>Log into your cPanel account and click on <strong>Cron Jobs<\/strong>.<\/li>\n<li>Under the <em>Current\u00a0Cron Jobs<\/em> table at the bottom of the page, locate the cron job that you wish to edit and click\u00a0<strong>Edit<\/strong> under <em>Actions<\/em> heading.<a href=\"http:\/\/cloudhost.com.ng\/blog\/wp-content\/uploads\/2016\/06\/EDIT.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-373\" src=\"http:\/\/cloudhost.com.ng\/blog\/wp-content\/uploads\/2016\/06\/EDIT.png\" alt=\"EDIT\" width=\"773\" height=\"117\" srcset=\"https:\/\/cloudhost.com.ng\/blog\/wp-content\/uploads\/2016\/06\/EDIT.png 773w, https:\/\/cloudhost.com.ng\/blog\/wp-content\/uploads\/2016\/06\/EDIT-300x45.png 300w, https:\/\/cloudhost.com.ng\/blog\/wp-content\/uploads\/2016\/06\/EDIT-768x116.png 768w, https:\/\/cloudhost.com.ng\/blog\/wp-content\/uploads\/2016\/06\/EDIT-624x94.png 624w\" sizes=\"(max-width: 773px) 100vw, 773px\" \/><\/a><a href=\"http:\/\/cloudhost.com.ng\/blog\/wp-content\/uploads\/2016\/06\/delete-1.png\"><br \/>\n<\/a><\/li>\n<li>Edit the settings that you wish to change and click\u00a0<strong>Edit Line<\/strong>.<a href=\"http:\/\/cloudhost.com.ng\/blog\/wp-content\/uploads\/2016\/06\/Screenshot-91-3.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-379\" src=\"http:\/\/cloudhost.com.ng\/blog\/wp-content\/uploads\/2016\/06\/Screenshot-91-3.png\" alt=\"Screenshot (91)\" width=\"775\" height=\"269\" srcset=\"https:\/\/cloudhost.com.ng\/blog\/wp-content\/uploads\/2016\/06\/Screenshot-91-3.png 775w, https:\/\/cloudhost.com.ng\/blog\/wp-content\/uploads\/2016\/06\/Screenshot-91-3-300x104.png 300w, https:\/\/cloudhost.com.ng\/blog\/wp-content\/uploads\/2016\/06\/Screenshot-91-3-768x267.png 768w, https:\/\/cloudhost.com.ng\/blog\/wp-content\/uploads\/2016\/06\/Screenshot-91-3-624x217.png 624w\" sizes=\"(max-width: 775px) 100vw, 775px\" \/><\/a><\/li>\n<\/ol>\n<h3 class=\"subject2blue\"><\/h3>\n<h3 class=\"subject2blue\">To delete a Cron Job<\/h3>\n<p>To delete a cron job, perform the following steps.<\/p>\n<ol>\n<li>Log into your cPanel account and click on Cron Jobs.<\/li>\n<li>Under the <em>Current\u00a0Cron Jobs<\/em> table at the bottom of the page, locate the cron job that you wish to remove\u00a0and click\u00a0<strong>Delete<\/strong><em>\u00a0<\/em>under Actions heading.<a href=\"http:\/\/cloudhost.com.ng\/blog\/wp-content\/uploads\/2016\/06\/delete-1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-372\" src=\"http:\/\/cloudhost.com.ng\/blog\/wp-content\/uploads\/2016\/06\/delete-1.png\" alt=\"delete\" width=\"773\" height=\"117\" srcset=\"https:\/\/cloudhost.com.ng\/blog\/wp-content\/uploads\/2016\/06\/delete-1.png 773w, https:\/\/cloudhost.com.ng\/blog\/wp-content\/uploads\/2016\/06\/delete-1-300x45.png 300w, https:\/\/cloudhost.com.ng\/blog\/wp-content\/uploads\/2016\/06\/delete-1-768x116.png 768w, https:\/\/cloudhost.com.ng\/blog\/wp-content\/uploads\/2016\/06\/delete-1-624x94.png 624w\" sizes=\"(max-width: 773px) 100vw, 773px\" \/><\/a><\/li>\n<li>Confirm your action by clicking <strong>Delete<\/strong><em>.<a href=\"http:\/\/cloudhost.com.ng\/blog\/wp-content\/uploads\/2016\/06\/Screenshot-92.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-380\" src=\"http:\/\/cloudhost.com.ng\/blog\/wp-content\/uploads\/2016\/06\/Screenshot-92.png\" alt=\"Screenshot (92)\" width=\"773\" height=\"174\" srcset=\"https:\/\/cloudhost.com.ng\/blog\/wp-content\/uploads\/2016\/06\/Screenshot-92.png 773w, https:\/\/cloudhost.com.ng\/blog\/wp-content\/uploads\/2016\/06\/Screenshot-92-300x68.png 300w, https:\/\/cloudhost.com.ng\/blog\/wp-content\/uploads\/2016\/06\/Screenshot-92-768x173.png 768w, https:\/\/cloudhost.com.ng\/blog\/wp-content\/uploads\/2016\/06\/Screenshot-92-624x140.png 624w\" sizes=\"(max-width: 773px) 100vw, 773px\" \/><\/a><\/em><\/li>\n<\/ol>\n<p style=\"padding-left: 30px\">In need of a website\/looking for a reliable web hosting service provider? Get one at a discounted rate at\u00a0<a href=\"http:\/\/secure.cloudhost.com.ng\/\">CloudhostAfrica<\/a> today.<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Cron jobs are scheduled tasks that the system runs at already set\u00a0times or intervals. A\u00a0cron job generally contains a series of simple tasks that the system runs from \u00a0script file. The Cron Jobs feature\u00a0in cPanel is very useful when it comes to\u00a0setting up automated maintenance and other unmanned server duties. \u00a0For example, you could set [&hellip;]<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[],"yst_prominent_words":[],"class_list":["post-370","post","type-post","status-publish","format-standard","hentry","category-cpanel"],"_links":{"self":[{"href":"https:\/\/cloudhost.com.ng\/blog\/wp-json\/wp\/v2\/posts\/370"}],"collection":[{"href":"https:\/\/cloudhost.com.ng\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/cloudhost.com.ng\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/cloudhost.com.ng\/blog\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/cloudhost.com.ng\/blog\/wp-json\/wp\/v2\/comments?post=370"}],"version-history":[{"count":9,"href":"https:\/\/cloudhost.com.ng\/blog\/wp-json\/wp\/v2\/posts\/370\/revisions"}],"predecessor-version":[{"id":388,"href":"https:\/\/cloudhost.com.ng\/blog\/wp-json\/wp\/v2\/posts\/370\/revisions\/388"}],"wp:attachment":[{"href":"https:\/\/cloudhost.com.ng\/blog\/wp-json\/wp\/v2\/media?parent=370"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cloudhost.com.ng\/blog\/wp-json\/wp\/v2\/categories?post=370"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cloudhost.com.ng\/blog\/wp-json\/wp\/v2\/tags?post=370"},{"taxonomy":"yst_prominent_words","embeddable":true,"href":"https:\/\/cloudhost.com.ng\/blog\/wp-json\/wp\/v2\/yst_prominent_words?post=370"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}