{"id":509,"date":"2013-02-25T16:58:14","date_gmt":"2013-02-25T16:58:14","guid":{"rendered":"https:\/\/www.inmotionhosting.com\/support\/2013\/02\/25\/did-cron-job-run\/"},"modified":"2025-02-21T10:23:49","modified_gmt":"2025-02-21T15:23:49","slug":"did-cron-job-run","status":"publish","type":"post","link":"https:\/\/www.inmotionhosting.com\/support\/edu\/cpanel\/did-cron-job-run\/","title":{"rendered":"How to Check if a Cron Job is Running"},"content":{"rendered":"<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"538\" src=\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2021\/07\/How-to-Check-if-a-Cron-Job-Is-Running-1024x538.png\" alt=\"\" class=\"wp-image-77106\" srcset=\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2021\/07\/How-to-Check-if-a-Cron-Job-Is-Running-1024x538.png 1024w, https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2021\/07\/How-to-Check-if-a-Cron-Job-Is-Running-300x158.png 300w, https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2021\/07\/How-to-Check-if-a-Cron-Job-Is-Running-768x403.png 768w, https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2021\/07\/How-to-Check-if-a-Cron-Job-Is-Running.png 1200w\" sizes=\"auto, (min-width: 1360px) 876px, (min-width: 960px) calc(61.58vw + 51px), calc(100vw - 80px)\" \/><\/figure>\n\n\n\n<p>A fairly common question about scheduled tasks that run in the background is, \u201cAre they running?\u201d These tasks, commonly known as cron jobs, need to run automatically for maintenance, backups, and other functional needs for the website and server.<\/p>\n\n\n\n<p>To determine if your cron jobs are running, you will need to distinguish between the scheduling of the tasks (the crontab) and the actual functions themselves (the cron jobs). Cron jobs that do not produce output results require you to become familiar with the server logs. Upon determining the results of the server logs, you can then troubleshoot cron jobs that are not running. You can also modify a script so that it produces an output to show that it is running.<\/p>\n\n\n\n<p>The following article will help you distinguish between a crontab and a cron job, describe two ways to see when a cron job is running, and troubleshoot cron jobs that are not running.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"#difference\">Understanding the Difference Between Crontab and Cron Job<\/a><\/li>\n\n\n\n<li><a href=\"#crontab-log\">2 Ways to See If Your Cron Job is Running<\/a><\/li>\n\n\n\n<li><a href=\"#troubleshooting\">Troubleshooting  a Cron Job<\/a><\/li>\n<\/ul>\n\n\n\n<p class=\"alert alert-warning\">NOTE: To perform this function, you must have <a href=\"https:\/\/www.inmotionhosting.com\/support\/amp\/obtain-root-access\/\">root access<\/a> on your VPS or <a href=\"https:\/\/www.inmotionhosting.com\/dedicated-servers\">Dedicated server<\/a>.<\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-rich is-provider-embed-handler wp-block-embed-embed-handler wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<div class=\"jetpack-video-wrapper\"><div class=\"yt-FvKCXnRMF2Y\">\n\t<a class=\"play-video-FvKCXnRMF2Y\" style=\"position: relative; display: flex; flex-wrap: wrap; align-items: center; cursor: pointer;\">\n\t\t<img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/i.ytimg.com\/vi_webp\/FvKCXnRMF2Y\/maxresdefault.webp\" width=\"1280\" height=\"720\" alt=\"How to Check if a Cron Job Is Running\" style=\"width: 100%; height: auto;\">\n\t\t<span class=\"fa fa-imh-play-circle imh-ds-icon play-circle\" style=\"position: absolute; display:block; font-size:150px; color: #c52228; opacity:0;\"><\/span>\n\t<\/a>\n<\/div><\/div>\n<\/div><\/figure>\n\n\n\n<div style=\"height:25px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"difference\"><strong>Difference Between Crontab and Cron Job<\/strong><\/h2>\n\n\n\n<p>Understanding the meaning of the terms \u201ccrontab\u201d and \u201ccron job\u201d can help prevent confusion between a beginner administrator and a developer or experienced server administrator.<\/p>\n\n\n\n<p>If you search for \u201cscheduling cron jobs<span style=\"box-sizing: border-box; margin: 0px; padding: 0px;\">\u201c, you will find the term\u00a0<strong>crontab\u00a0<\/strong>defined or described with little introduction.\u00a0<strong>Crontab<\/strong>\u00a0is short for <\/span><strong><span style=\"box-sizing: border-box; margin: 0px; padding: 0px;\">\u201ccro<\/span>n table\u201d<\/strong> and is a Linux command for scheduling cron jobs. It is also the actual text file that contains the scheduling for cron jobs.<\/p>\n\n\n\n<p>A <strong>cron job <\/strong>is a code or script you are trying to run in the background at a particular scheduled time. The Linux command for a cron job is simply <strong>cron<\/strong>.<\/p>\n\n\n\n<p>So, if someone asks you how a cron job is scheduled in the crontab, you know that they are referring to the timing and frequency information applied to the cron job in the text file known as the crontab.<\/p>\n\n\n\n<p>For cPanel, the crontab and cron job can be edited directly in the cPanel interface on the <strong>Cron Jobs<\/strong> page.\u00a0 Here, you can see the upper portion of the <strong>Cron Jobs<\/strong> page:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-style-default\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"516\" src=\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2021\/08\/cron-job-page-upper-1024x516.jpg\" alt=\"Cron Jobs page - upper half\" class=\"wp-image-82019\" srcset=\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2021\/08\/cron-job-page-upper-1024x516.jpg 1024w, https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2021\/08\/cron-job-page-upper-300x151.jpg 300w, https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2021\/08\/cron-job-page-upper-768x387.jpg 768w, https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2021\/08\/cron-job-page-upper.jpg 1248w\" sizes=\"auto, (min-width: 1360px) 876px, (min-width: 960px) calc(61.58vw + 51px), calc(100vw - 80px)\" \/><\/figure>\n\n\n\n<p>If you have any existing cron jobs, then you will see them at the bottom of the <strong>Cron Jobs<\/strong> page.\u00a0 You will see the timing for the cron job (from the crontab file) and the code for the cron job.\u00a0 You can add, edit, and delete cron jobs and their corresponding schedules on this page. Here\u2019s how the bottom section looks:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-style-default\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"620\" src=\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2021\/08\/cron-job-page-lower-1024x620.jpg\" alt=\"Cron Jobs page - lower half\" class=\"wp-image-82020\" srcset=\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2021\/08\/cron-job-page-lower-1024x620.jpg 1024w, https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2021\/08\/cron-job-page-lower-300x182.jpg 300w, https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2021\/08\/cron-job-page-lower-768x465.jpg 768w, https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2021\/08\/cron-job-page-lower.jpg 1111w\" sizes=\"auto, (min-width: 1360px) 876px, (min-width: 960px) calc(61.58vw + 51px), calc(100vw - 80px)\" \/><\/figure>\n\n\n\n<p>Using the crontab information provided in cPanel you can determine when a cron job was supposed to run.  In some cases, cron jobs will not generate an output, so it is important that you become familiar with the generated log files and how to search them.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"crontab-log\">2 Ways to See If Your Cron Job is Running<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">Checking the Log Files<\/h3>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono-NL.ttf\" style=\"font-size:clamp(16px, 1rem, 24px);font-family:Code-Pro-JetBrains-Mono-NL,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:clamp(26px, 1.625rem, 39px);--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span role=\"button\" tabindex=\"0\" data-code=\"grep &quot;script.sh&quot; \/var\/log\/cron\" style=\"color:#e1e4e8;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewbox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M4.5 12.75l6 6 9-13.5\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6\"><\/path><\/svg><\/span><pre class=\"shiki github-dark\" style=\"background-color: #24292e\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #B392F0\">grep<\/span><span style=\"color: #E1E4E8\"> <\/span><span style=\"color: #9ECBFF\">\"script.sh\"<\/span><span style=\"color: #E1E4E8\"> <\/span><span style=\"color: #9ECBFF\">\/var\/log\/cron<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p>If you were to search for a different script or term in the log file, then you would replace \u201cscript.sh\u201d with the name of your script file or text string that you\u2019re trying to find in the log.<\/p>\n\n\n\n<p>Using the grep command, you can view the log to see the last time the script in the cron job was executed.\u00a0 If the cron job does not produce a visible output, then you would need to check to see if the cron job has taken place.\u00a0<\/p>\n\n\n\n<p>For example, you can see the last time when a cache clearing cron job was executed.  You would then check to see if the cache is cleared by seeing if the cache is empty or not.\u00a0 Here\u2019s an example of seeing a cronjob running by checking the log:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-style-default\"><img loading=\"lazy\" decoding=\"async\" width=\"931\" height=\"411\" src=\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2021\/08\/checking-cron-log.jpg\" alt=\"\" class=\"wp-image-82021\" srcset=\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2021\/08\/checking-cron-log.jpg 931w, https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2021\/08\/checking-cron-log-300x132.jpg 300w, https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2021\/08\/checking-cron-log-768x339.jpg 768w\" sizes=\"auto, (min-width: 1360px) 876px, (min-width: 960px) calc(61.58vw + 51px), calc(100vw - 80px)\" \/><\/figure>\n\n\n\n<p>The log shows a record of when the file was run. Please see our tutorial if you need information on accessing the<a href=\"https:\/\/www.inmotionhosting.com\/support\/edu\/cpanel\/how-to-launch-the-cpanel-terminal\/\"> terminal through cPanel<\/a>.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Using Output In a Script to Show a Running Cron Job<\/h3>\n\n\n\n<p class=\"alert alert-warning\"><meta charset=\"utf-8\">The easiest way to see if a cron job (with its crontab settings) is working is to edit an existing cron job so that it produces a visible output.  You can add a line of code in your existing script to output a result when the script is run. If the result of this command produces an output, then you can use this output to confirm that your cron script is running.<br><br>The modification of a cron job script should not be performed by a user who is not familiar with the code or script being executed.  Since cron jobs can be written in many different ways, you may need to speak with an experienced developer to help prevent any issues with your website.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"troubleshooting\">Troubleshooting Cron Jobs<\/h2>\n\n\n\n<p> If you are not seeing any activity in the crontab log or if you are not receiving an email regarding the cron activity (for cron jobs with an output), then you will want to <em>first<\/em> double-check that the time parameters for the cron job are correct. This will help to determine if (and when) the cron is supposed to be running so that you can properly troubleshoot possible issues.<\/p>\n\n\n\n<p>If you still suspect a problem with the cron job, then there are usually 3 possibilities as to why it might not be running:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>The cron daemon (the system process that runs cron jobs) could not run the script or was unable to send an email<\/li>\n\n\n\n<li>There were issues with the mail server mailing the output, or the email was lost<\/li>\n\n\n\n<li>The cron job did not produce an output or error message<\/li>\n<\/ol>\n\n\n\n<p>In all three cases, the cron job is silently failing.  In other words, there is no visual result of the cron job running. <\/p>\n\n\n\n<p>In the first possibility, you will need to check the system log on the web server to search for errors that may be recorded during the attempted execution of the cron job. You can then use the error message to isolate where the cron job script may be failing and make necessary corrections.<\/p>\n\n\n\n<p>You may also need to go through the mail server log to double-check if there was an attempt to send an email after completing the cron job. Remember that the designated email address is near the top of the cron job page in cPanel. You can use the email address to isolate the mail server log\u2019s mail attempts.<\/p>\n\n\n\n<p>You would also check the mail server log if you see the record of the cron job running but no expected email. Emails are sent when cron jobs are successfully completed and have an output.<\/p>\n\n\n\n<p>In the third possibility, you will need to add code to your cron job so that it produces an easily tracked output that allows you to verify that it is running.<\/p>\n\n\n\n<p>If you are unsure how to check mail server logs, contact your hosting service\u2019s technical support or work with an experienced administrator to use the logs to help you identify problems related to the mail server.<\/p>\n\n\n\n<p>A cron job can fail in many ways. If you are not sure how to code cron jobs, consult with an experienced developer to help you make corrections or modify code for troubleshooting purposes.<\/p>\n\n\n\n<p><span style=\"box-sizing: border-box; margin: 0px; padding: 0px;\">If you need more information about\u00a0<a href=\"https:\/\/www.inmotionhosting.com\/support\/edu\/cpanel\/how-to-run-a-cron-job\/\" target=\"_blank\">setting up cron jobs in cPanel,<\/a>\u00a0you can read our full guide<\/span>.<\/p>\n\n\n<div class=\"jumbotron\">Make sure your business, agency, or reseller clients are always connected and powered on with our optimized <a href=\"https:\/\/www.inmotionhosting.com\/vps-hosting\">Managed VPS Hosting<\/a>.<\/div>\n","protected":false},"excerpt":{"rendered":"<p>A fairly common question about scheduled tasks that run in the background is, &#8220;Are they running?&#8221; These tasks, commonly known as cron jobs, need to run automatically for maintenance, backups, and other functional needs for the website and server. To determine if your cron jobs are running, you will need to distinguish between the scheduling<a class=\"moretag\" href=\"https:\/\/www.inmotionhosting.com\/support\/edu\/cpanel\/did-cron-job-run\/\"> Read More ><\/a><\/p>\n","protected":false},"author":7,"featured_media":77106,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[51],"tags":[],"class_list":["post-509","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-cpanel"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.1.1 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to Check if a Cron Job is Running - InMotion Hosting<\/title>\n<meta name=\"description\" content=\"Learn how to check if a cron job has run, verify logs, troubleshoot issues, and modify scripts to confirm execution using the command line.\" \/>\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.inmotionhosting.com\/support\/edu\/cpanel\/did-cron-job-run\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Check if a Cron Job is Running\" \/>\n<meta property=\"og:description\" content=\"Learn how to determine if a cron job is running. You will learn about the differences between a crontab and cron job and where to check their log files.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.inmotionhosting.com\/support\/edu\/cpanel\/did-cron-job-run\/\" \/>\n<meta property=\"og:site_name\" content=\"InMotion Hosting Support Center\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/inmotionhosting\/\" \/>\n<meta property=\"article:published_time\" content=\"2013-02-25T16:58:14+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-02-21T15:23:49+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2021\/07\/How-to-Check-if-a-Cron-Job-Is-Running.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=\"InMotion Hosting Contributor\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@https:\/\/twitter.com\/InMotionHosting\" \/>\n<meta name=\"twitter:site\" content=\"@InMotionHosting\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"InMotion Hosting Contributor\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"7 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/cpanel\/did-cron-job-run\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/cpanel\/did-cron-job-run\/\"},\"author\":{\"name\":\"InMotion Hosting Contributor\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/8d626175dd3b70ee90a172bdb09a460b\"},\"headline\":\"How to Check if a Cron Job is Running\",\"datePublished\":\"2013-02-25T16:58:14+00:00\",\"dateModified\":\"2025-02-21T15:23:49+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/cpanel\/did-cron-job-run\/\"},\"wordCount\":1242,\"commentCount\":18,\"publisher\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#organization\"},\"image\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/cpanel\/did-cron-job-run\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2021\/07\/How-to-Check-if-a-Cron-Job-Is-Running.png\",\"articleSection\":[\"cPanel\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.inmotionhosting.com\/support\/edu\/cpanel\/did-cron-job-run\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/cpanel\/did-cron-job-run\/\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/cpanel\/did-cron-job-run\/\",\"name\":\"How to Check if a Cron Job is Running - InMotion Hosting\",\"isPartOf\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/cpanel\/did-cron-job-run\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/cpanel\/did-cron-job-run\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2021\/07\/How-to-Check-if-a-Cron-Job-Is-Running.png\",\"datePublished\":\"2013-02-25T16:58:14+00:00\",\"dateModified\":\"2025-02-21T15:23:49+00:00\",\"description\":\"Learn how to check if a cron job has run, verify logs, troubleshoot issues, and modify scripts to confirm execution using the command line.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/cpanel\/did-cron-job-run\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.inmotionhosting.com\/support\/edu\/cpanel\/did-cron-job-run\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/cpanel\/did-cron-job-run\/#primaryimage\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2021\/07\/How-to-Check-if-a-Cron-Job-Is-Running.png\",\"contentUrl\":\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2021\/07\/How-to-Check-if-a-Cron-Job-Is-Running.png\",\"width\":1200,\"height\":630,\"caption\":\"How to check if a Cron is running\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/cpanel\/did-cron-job-run\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.inmotionhosting.com\/support\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Check if a Cron Job is Running\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#website\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/\",\"name\":\"InMotion Hosting Support Center\",\"description\":\"Web Hosting Support &amp; Tutorials\",\"publisher\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.inmotionhosting.com\/support\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#organization\",\"name\":\"InMotion Hosting\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/02\/inmotion-hosting-logo-yoast.jpg\",\"contentUrl\":\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/02\/inmotion-hosting-logo-yoast.jpg\",\"width\":696,\"height\":696,\"caption\":\"InMotion Hosting\"},\"image\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/inmotionhosting\/\",\"https:\/\/x.com\/InMotionHosting\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/8d626175dd3b70ee90a172bdb09a460b\",\"name\":\"InMotion Hosting Contributor\",\"description\":\"InMotion Hosting contributors are highly knowledgeable individuals who create relevant content on new trends and troubleshooting techniques to help you achieve your online goals!\",\"sameAs\":[\"https:\/\/www.linkedin.com\/company\/inmotion-hosting\/\",\"https:\/\/x.com\/https:\/\/twitter.com\/InMotionHosting\"],\"url\":\"https:\/\/www.inmotionhosting.com\/support\/author\/arn\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Check if a Cron Job is Running - InMotion Hosting","description":"Learn how to check if a cron job has run, verify logs, troubleshoot issues, and modify scripts to confirm execution using the command line.","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.inmotionhosting.com\/support\/edu\/cpanel\/did-cron-job-run\/","og_locale":"en_US","og_type":"article","og_title":"How to Check if a Cron Job is Running","og_description":"Learn how to determine if a cron job is running. You will learn about the differences between a crontab and cron job and where to check their log files.","og_url":"https:\/\/www.inmotionhosting.com\/support\/edu\/cpanel\/did-cron-job-run\/","og_site_name":"InMotion Hosting Support Center","article_publisher":"https:\/\/www.facebook.com\/inmotionhosting\/","article_published_time":"2013-02-25T16:58:14+00:00","article_modified_time":"2025-02-21T15:23:49+00:00","og_image":[{"width":1200,"height":630,"url":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2021\/07\/How-to-Check-if-a-Cron-Job-Is-Running.png","type":"image\/png"}],"author":"InMotion Hosting Contributor","twitter_card":"summary_large_image","twitter_creator":"@https:\/\/twitter.com\/InMotionHosting","twitter_site":"@InMotionHosting","twitter_misc":{"Written by":"InMotion Hosting Contributor","Est. reading time":"7 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.inmotionhosting.com\/support\/edu\/cpanel\/did-cron-job-run\/#article","isPartOf":{"@id":"https:\/\/www.inmotionhosting.com\/support\/edu\/cpanel\/did-cron-job-run\/"},"author":{"name":"InMotion Hosting Contributor","@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/8d626175dd3b70ee90a172bdb09a460b"},"headline":"How to Check if a Cron Job is Running","datePublished":"2013-02-25T16:58:14+00:00","dateModified":"2025-02-21T15:23:49+00:00","mainEntityOfPage":{"@id":"https:\/\/www.inmotionhosting.com\/support\/edu\/cpanel\/did-cron-job-run\/"},"wordCount":1242,"commentCount":18,"publisher":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#organization"},"image":{"@id":"https:\/\/www.inmotionhosting.com\/support\/edu\/cpanel\/did-cron-job-run\/#primaryimage"},"thumbnailUrl":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2021\/07\/How-to-Check-if-a-Cron-Job-Is-Running.png","articleSection":["cPanel"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.inmotionhosting.com\/support\/edu\/cpanel\/did-cron-job-run\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.inmotionhosting.com\/support\/edu\/cpanel\/did-cron-job-run\/","url":"https:\/\/www.inmotionhosting.com\/support\/edu\/cpanel\/did-cron-job-run\/","name":"How to Check if a Cron Job is Running - InMotion Hosting","isPartOf":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.inmotionhosting.com\/support\/edu\/cpanel\/did-cron-job-run\/#primaryimage"},"image":{"@id":"https:\/\/www.inmotionhosting.com\/support\/edu\/cpanel\/did-cron-job-run\/#primaryimage"},"thumbnailUrl":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2021\/07\/How-to-Check-if-a-Cron-Job-Is-Running.png","datePublished":"2013-02-25T16:58:14+00:00","dateModified":"2025-02-21T15:23:49+00:00","description":"Learn how to check if a cron job has run, verify logs, troubleshoot issues, and modify scripts to confirm execution using the command line.","breadcrumb":{"@id":"https:\/\/www.inmotionhosting.com\/support\/edu\/cpanel\/did-cron-job-run\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.inmotionhosting.com\/support\/edu\/cpanel\/did-cron-job-run\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.inmotionhosting.com\/support\/edu\/cpanel\/did-cron-job-run\/#primaryimage","url":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2021\/07\/How-to-Check-if-a-Cron-Job-Is-Running.png","contentUrl":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2021\/07\/How-to-Check-if-a-Cron-Job-Is-Running.png","width":1200,"height":630,"caption":"How to check if a Cron is running"},{"@type":"BreadcrumbList","@id":"https:\/\/www.inmotionhosting.com\/support\/edu\/cpanel\/did-cron-job-run\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.inmotionhosting.com\/support\/"},{"@type":"ListItem","position":2,"name":"How to Check if a Cron Job is Running"}]},{"@type":"WebSite","@id":"https:\/\/www.inmotionhosting.com\/support\/#website","url":"https:\/\/www.inmotionhosting.com\/support\/","name":"InMotion Hosting Support Center","description":"Web Hosting Support &amp; Tutorials","publisher":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.inmotionhosting.com\/support\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.inmotionhosting.com\/support\/#organization","name":"InMotion Hosting","url":"https:\/\/www.inmotionhosting.com\/support\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/logo\/image\/","url":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/02\/inmotion-hosting-logo-yoast.jpg","contentUrl":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/02\/inmotion-hosting-logo-yoast.jpg","width":696,"height":696,"caption":"InMotion Hosting"},"image":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/inmotionhosting\/","https:\/\/x.com\/InMotionHosting"]},{"@type":"Person","@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/8d626175dd3b70ee90a172bdb09a460b","name":"InMotion Hosting Contributor","description":"InMotion Hosting contributors are highly knowledgeable individuals who create relevant content on new trends and troubleshooting techniques to help you achieve your online goals!","sameAs":["https:\/\/www.linkedin.com\/company\/inmotion-hosting\/","https:\/\/x.com\/https:\/\/twitter.com\/InMotionHosting"],"url":"https:\/\/www.inmotionhosting.com\/support\/author\/arn\/"}]}},"jetpack_featured_media_url":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2021\/07\/How-to-Check-if-a-Cron-Job-Is-Running.png","jetpack_sharing_enabled":true,"primary_category":{"id":51,"name":"cPanel","slug":"cpanel","link":"https:\/\/www.inmotionhosting.com\/support\/edu\/cpanel\/"},"_links":{"self":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts\/509","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/users\/7"}],"replies":[{"embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/comments?post=509"}],"version-history":[{"count":19,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts\/509\/revisions"}],"predecessor-version":[{"id":129417,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts\/509\/revisions\/129417"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/media\/77106"}],"wp:attachment":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/media?parent=509"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/categories?post=509"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/tags?post=509"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}