{"id":581,"date":"2019-01-28T16:57:25","date_gmt":"2019-01-28T11:27:25","guid":{"rendered":"https:\/\/mediastroke.com\/blog\/?p=581"},"modified":"2019-01-30T14:22:57","modified_gmt":"2019-01-30T08:52:57","slug":"how-to-add-cron-jobs-in-cpanel","status":"publish","type":"post","link":"https:\/\/mediastroke.com\/blog\/how-to-add-cron-jobs-in-cpanel\/","title":{"rendered":"How to add cron jobs in cPanel"},"content":{"rendered":"\n

How to add cron jobs in cPanel<\/h2>\n\n\n\n

\nCron jobs are most important\nand useful aspects of cPanel. Basically, these are tasks scheduled to\nrun at set intervals and times. These \u201cjobs\u201d can be scheduled via\ncommand line, but it is easier to do via cPanel .<\/p>\n\n\n\n

\n For example, if you want to\nrun a command on specific time like once a day or once a week, you\ncan setup cron jobs. Cron jobs allow you to run specific command\nautomatically.<\/p>\n\n\n\n

1. Go to cron jobs page in cPanel:-<\/strong><\/h5>\n\n\n\n

The first step is to log in to cPanel and scroll down till you find section \u201cAdvanced<\/strong>\u201d and then select \u201cCron Jobs\u201d or directly you can search in toolbar as shown here.<\/p>\n\n\n\n

\"\"<\/a><\/figure>\n\n\n\n
2. Choose E-mail\nsettings:-<\/strong><\/h5>\n\n\n\n

You have an option in cPanel to send e-mail whenever this particular cron job runs. It provides facility to keep track on commands. In the following section, enter email address it you want.<\/p>\n\n\n\n

\"\"<\/a><\/figure>\n\n\n\n
3. Choosing the\nschedule:-<\/strong><\/h5>\n\n\n\n

This box allow you to select some common schedules for your job. You can get this by selecting one of the option. For example, if you want to choose to run command once a week with default settings.<\/p>\n\n\n\n

\"\"<\/a><\/figure>\n\n\n\n
4. Specifying the\ncommand:-<\/strong><\/h5>\n\n\n\n

Once, you have scheduled your time then type the command you want to run into the box labeled \u201cCommand<\/strong>\u201d.<\/p>\n\n\n\n

\"\"<\/a><\/figure>\n\n\n\n

Suppose you want to send mail at once in a week then by using this command you can send mail to that person. You have to add PHP script file in public_html. <\/p>\n\n\n\n

<\/p>\n\n\n\n

<\/p>\n\n\n\n

<\/p>\n","protected":false},"excerpt":{"rendered":"

How to add cron jobs in cPanel Cron jobs are most important and useful aspects of cPanel. Basically, these are […]<\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"yoast_head":"\nHow to add cron jobs in cPanel -<\/title>\n<meta name=\"description\" content=\"This blog describes what are cron jobs and how to add cron jobs in cPanel. Cron jobs scheduleds a task to run at some intervals.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/mediastroke.com\/blog\/how-to-add-cron-jobs-in-cpanel\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to add cron jobs in cPanel\" \/>\n<meta property=\"og:description\" content=\"This blog describes what are cron jobs and how to add cron jobs in cPanel. Cron jobs scheduleds a task to run at some intervals.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/mediastroke.com\/blog\/how-to-add-cron-jobs-in-cpanel\/\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/mediastroke\" \/>\n<meta property=\"article:published_time\" content=\"2019-01-28T11:27:25+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2019-01-30T08:52:57+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/mediastroke.com\/blog\/wp-content\/uploads\/2019\/01\/How-to-add-cron-jobs-in-cPanel-1.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"630\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Ashwini Patil\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:title\" content=\"How to add cron jobs in cPanel\" \/>\n<meta name=\"twitter:description\" content=\"This blog describes what are cron jobs and how to add cron jobs in cPanel. Cron jobs scheduleds a task to run at some intervals.\" \/>\n<meta name=\"twitter:image\" content=\"https:\/\/mediastroke.com\/blog\/wp-content\/uploads\/2019\/01\/How-to-add-cron-jobs-in-cPanel.png\" \/>\n<meta name=\"twitter:creator\" content=\"@mediastrokehost\" \/>\n<meta name=\"twitter:site\" content=\"@mediastrokehost\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Ashwini Patil\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/mediastroke.com\/blog\/how-to-add-cron-jobs-in-cpanel\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/mediastroke.com\/blog\/how-to-add-cron-jobs-in-cpanel\/\"},\"author\":{\"name\":\"Ashwini Patil\",\"@id\":\"https:\/\/mediastroke.com\/blog\/#\/schema\/person\/ea5503549640cc33f160904632fde0d3\"},\"headline\":\"How to add cron jobs in cPanel\",\"datePublished\":\"2019-01-28T11:27:25+00:00\",\"dateModified\":\"2019-01-30T08:52:57+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/mediastroke.com\/blog\/how-to-add-cron-jobs-in-cpanel\/\"},\"wordCount\":261,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/mediastroke.com\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/mediastroke.com\/blog\/how-to-add-cron-jobs-in-cpanel\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/mediastroke.com\/blog\/wp-content\/uploads\/2019\/01\/Screenshot-from-2019-01-28-10-20-06.png\",\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/mediastroke.com\/blog\/how-to-add-cron-jobs-in-cpanel\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/mediastroke.com\/blog\/how-to-add-cron-jobs-in-cpanel\/\",\"url\":\"https:\/\/mediastroke.com\/blog\/how-to-add-cron-jobs-in-cpanel\/\",\"name\":\"How to add cron jobs in cPanel -\",\"isPartOf\":{\"@id\":\"https:\/\/mediastroke.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/mediastroke.com\/blog\/how-to-add-cron-jobs-in-cpanel\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/mediastroke.com\/blog\/how-to-add-cron-jobs-in-cpanel\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/mediastroke.com\/blog\/wp-content\/uploads\/2019\/01\/Screenshot-from-2019-01-28-10-20-06.png\",\"datePublished\":\"2019-01-28T11:27:25+00:00\",\"dateModified\":\"2019-01-30T08:52:57+00:00\",\"description\":\"This blog describes what are cron jobs and how to add cron jobs in cPanel. Cron jobs scheduleds a task to run at some intervals.\",\"breadcrumb\":{\"@id\":\"https:\/\/mediastroke.com\/blog\/how-to-add-cron-jobs-in-cpanel\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/mediastroke.com\/blog\/how-to-add-cron-jobs-in-cpanel\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/mediastroke.com\/blog\/how-to-add-cron-jobs-in-cpanel\/#primaryimage\",\"url\":\"https:\/\/mediastroke.com\/blog\/wp-content\/uploads\/2019\/01\/Screenshot-from-2019-01-28-10-20-06.png\",\"contentUrl\":\"https:\/\/mediastroke.com\/blog\/wp-content\/uploads\/2019\/01\/Screenshot-from-2019-01-28-10-20-06.png\",\"width\":891,\"height\":240},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/mediastroke.com\/blog\/how-to-add-cron-jobs-in-cpanel\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/mediastroke.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to add cron jobs in cPanel\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/mediastroke.com\/blog\/#website\",\"url\":\"https:\/\/mediastroke.com\/blog\/\",\"name\":\"\",\"description\":\"Web Hosting Provider\",\"publisher\":{\"@id\":\"https:\/\/mediastroke.com\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/mediastroke.com\/blog\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/mediastroke.com\/blog\/#organization\",\"name\":\"MediaStroke\",\"url\":\"https:\/\/mediastroke.com\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/mediastroke.com\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/mediastroke.com\/blog\/wp-content\/uploads\/2024\/03\/mediastroke-white-logo-blog-50h.png\",\"contentUrl\":\"https:\/\/mediastroke.com\/blog\/wp-content\/uploads\/2024\/03\/mediastroke-white-logo-blog-50h.png\",\"width\":320,\"height\":50,\"caption\":\"MediaStroke\"},\"image\":{\"@id\":\"https:\/\/mediastroke.com\/blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/mediastroke\",\"https:\/\/x.com\/mediastrokehost\",\"https:\/\/www.linkedin.com\/company\/mediastroke-servers\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/mediastroke.com\/blog\/#\/schema\/person\/ea5503549640cc33f160904632fde0d3\",\"name\":\"Ashwini Patil\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/mediastroke.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/93d588f40ad7e8565e2bbb418ca9b252?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/93d588f40ad7e8565e2bbb418ca9b252?s=96&d=mm&r=g\",\"caption\":\"Ashwini Patil\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to add cron jobs in cPanel -","description":"This blog describes what are cron jobs and how to add cron jobs in cPanel. Cron jobs scheduleds a task to run at some intervals.","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:\/\/mediastroke.com\/blog\/how-to-add-cron-jobs-in-cpanel\/","og_locale":"en_US","og_type":"article","og_title":"How to add cron jobs in cPanel","og_description":"This blog describes what are cron jobs and how to add cron jobs in cPanel. Cron jobs scheduleds a task to run at some intervals.","og_url":"https:\/\/mediastroke.com\/blog\/how-to-add-cron-jobs-in-cpanel\/","article_publisher":"https:\/\/www.facebook.com\/mediastroke","article_published_time":"2019-01-28T11:27:25+00:00","article_modified_time":"2019-01-30T08:52:57+00:00","og_image":[{"width":1200,"height":630,"url":"https:\/\/mediastroke.com\/blog\/wp-content\/uploads\/2019\/01\/How-to-add-cron-jobs-in-cPanel-1.png","type":"image\/png"}],"author":"Ashwini Patil","twitter_card":"summary_large_image","twitter_title":"How to add cron jobs in cPanel","twitter_description":"This blog describes what are cron jobs and how to add cron jobs in cPanel. Cron jobs scheduleds a task to run at some intervals.","twitter_image":"https:\/\/mediastroke.com\/blog\/wp-content\/uploads\/2019\/01\/How-to-add-cron-jobs-in-cPanel.png","twitter_creator":"@mediastrokehost","twitter_site":"@mediastrokehost","twitter_misc":{"Written by":"Ashwini Patil","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/mediastroke.com\/blog\/how-to-add-cron-jobs-in-cpanel\/#article","isPartOf":{"@id":"https:\/\/mediastroke.com\/blog\/how-to-add-cron-jobs-in-cpanel\/"},"author":{"name":"Ashwini Patil","@id":"https:\/\/mediastroke.com\/blog\/#\/schema\/person\/ea5503549640cc33f160904632fde0d3"},"headline":"How to add cron jobs in cPanel","datePublished":"2019-01-28T11:27:25+00:00","dateModified":"2019-01-30T08:52:57+00:00","mainEntityOfPage":{"@id":"https:\/\/mediastroke.com\/blog\/how-to-add-cron-jobs-in-cpanel\/"},"wordCount":261,"commentCount":0,"publisher":{"@id":"https:\/\/mediastroke.com\/blog\/#organization"},"image":{"@id":"https:\/\/mediastroke.com\/blog\/how-to-add-cron-jobs-in-cpanel\/#primaryimage"},"thumbnailUrl":"https:\/\/mediastroke.com\/blog\/wp-content\/uploads\/2019\/01\/Screenshot-from-2019-01-28-10-20-06.png","inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/mediastroke.com\/blog\/how-to-add-cron-jobs-in-cpanel\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/mediastroke.com\/blog\/how-to-add-cron-jobs-in-cpanel\/","url":"https:\/\/mediastroke.com\/blog\/how-to-add-cron-jobs-in-cpanel\/","name":"How to add cron jobs in cPanel -","isPartOf":{"@id":"https:\/\/mediastroke.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/mediastroke.com\/blog\/how-to-add-cron-jobs-in-cpanel\/#primaryimage"},"image":{"@id":"https:\/\/mediastroke.com\/blog\/how-to-add-cron-jobs-in-cpanel\/#primaryimage"},"thumbnailUrl":"https:\/\/mediastroke.com\/blog\/wp-content\/uploads\/2019\/01\/Screenshot-from-2019-01-28-10-20-06.png","datePublished":"2019-01-28T11:27:25+00:00","dateModified":"2019-01-30T08:52:57+00:00","description":"This blog describes what are cron jobs and how to add cron jobs in cPanel. Cron jobs scheduleds a task to run at some intervals.","breadcrumb":{"@id":"https:\/\/mediastroke.com\/blog\/how-to-add-cron-jobs-in-cpanel\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/mediastroke.com\/blog\/how-to-add-cron-jobs-in-cpanel\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/mediastroke.com\/blog\/how-to-add-cron-jobs-in-cpanel\/#primaryimage","url":"https:\/\/mediastroke.com\/blog\/wp-content\/uploads\/2019\/01\/Screenshot-from-2019-01-28-10-20-06.png","contentUrl":"https:\/\/mediastroke.com\/blog\/wp-content\/uploads\/2019\/01\/Screenshot-from-2019-01-28-10-20-06.png","width":891,"height":240},{"@type":"BreadcrumbList","@id":"https:\/\/mediastroke.com\/blog\/how-to-add-cron-jobs-in-cpanel\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/mediastroke.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to add cron jobs in cPanel"}]},{"@type":"WebSite","@id":"https:\/\/mediastroke.com\/blog\/#website","url":"https:\/\/mediastroke.com\/blog\/","name":"","description":"Web Hosting Provider","publisher":{"@id":"https:\/\/mediastroke.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/mediastroke.com\/blog\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/mediastroke.com\/blog\/#organization","name":"MediaStroke","url":"https:\/\/mediastroke.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/mediastroke.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/mediastroke.com\/blog\/wp-content\/uploads\/2024\/03\/mediastroke-white-logo-blog-50h.png","contentUrl":"https:\/\/mediastroke.com\/blog\/wp-content\/uploads\/2024\/03\/mediastroke-white-logo-blog-50h.png","width":320,"height":50,"caption":"MediaStroke"},"image":{"@id":"https:\/\/mediastroke.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/mediastroke","https:\/\/x.com\/mediastrokehost","https:\/\/www.linkedin.com\/company\/mediastroke-servers"]},{"@type":"Person","@id":"https:\/\/mediastroke.com\/blog\/#\/schema\/person\/ea5503549640cc33f160904632fde0d3","name":"Ashwini Patil","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/mediastroke.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/93d588f40ad7e8565e2bbb418ca9b252?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/93d588f40ad7e8565e2bbb418ca9b252?s=96&d=mm&r=g","caption":"Ashwini Patil"}}]}},"_links":{"self":[{"href":"https:\/\/mediastroke.com\/blog\/wp-json\/wp\/v2\/posts\/581"}],"collection":[{"href":"https:\/\/mediastroke.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mediastroke.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mediastroke.com\/blog\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/mediastroke.com\/blog\/wp-json\/wp\/v2\/comments?post=581"}],"version-history":[{"count":7,"href":"https:\/\/mediastroke.com\/blog\/wp-json\/wp\/v2\/posts\/581\/revisions"}],"predecessor-version":[{"id":597,"href":"https:\/\/mediastroke.com\/blog\/wp-json\/wp\/v2\/posts\/581\/revisions\/597"}],"wp:attachment":[{"href":"https:\/\/mediastroke.com\/blog\/wp-json\/wp\/v2\/media?parent=581"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mediastroke.com\/blog\/wp-json\/wp\/v2\/categories?post=581"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mediastroke.com\/blog\/wp-json\/wp\/v2\/tags?post=581"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}