{"id":1022,"date":"2021-10-13T15:31:42","date_gmt":"2021-10-13T15:31:42","guid":{"rendered":"https:\/\/blog.hostinger.io\/support\/2021\/10\/13\/5647075-how-to-check-the-output-of-a-cron-job-at-hostinger\/"},"modified":"2026-06-12T08:19:46","modified_gmt":"2026-06-12T08:19:46","slug":"5647075-how-to-check-the-output-of-a-cron-job-at-hostinger","status":"publish","type":"post","link":"https:\/\/www.hostinger.com\/support\/5647075-how-to-check-the-output-of-a-cron-job-at-hostinger\/","title":{"rendered":"How to check the output of a cron job at Hostinger"},"content":{"rendered":"<p data-path-to-node=\"4\">After you <a href=\"https:\/\/www.hostinger.com\/support\/1583465-how-to-set-up-a-cron-job-at-hostinger\/\">set up a cron job<\/a> on your Hostinger web, cloud or agency hosting plan, the script runs automatically based on your defined schedule. Checking the output helps you verify if the task is executing correctly or troubleshooting errors.<\/p><h2 id=\"h-before-you-start\">Before you start<\/h2><ul>\n<li>This guide applies to custom PHP or HTML websites on web, cloud, and agency hosting plans.<\/li>\n<li>Hostinger Horizons and Hostinger Website Builder do not support cron jobs, as they are not file-based platforms.<\/li>\n<\/ul><h2 id=\"h-verify-the-cron-job-output\">Verify the cron job output<\/h2><p>The execution results become available as soon as the scheduled task runs.<\/p><ol>\n<li>Go to hPanel <span style=\"font-weight: 400\">&rarr; <\/span><a href=\"https:\/\/hpanel.hostinger.com\/websites\" target=\"_blank\" rel=\"noopener\"><span style=\"font-weight: 400\">Websites<\/span><\/a><\/li>\n<li>Click on <strong>Dashboard<\/strong> next to the website where the cron job is created.<\/li>\n<li>On the sidebar, select Advanced <span style=\"font-weight: 400\">&rarr;<\/span> <strong>Cron Jobs<\/strong>.<\/li>\n<li>Scroll down to the <strong>List of Cron Jobs<\/strong> section.<\/li>\n<li>Locate your cron job and click <strong>View Output<\/strong>.<br>\n<img decoding=\"async\" class=\"aligncenter wp-image-11574\" src=\"https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/06\/hostinger-hpanel-cron-job-view-output.png\" alt=\"\" width=\"706\" height=\"129\" srcset=\"https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/06\/hostinger-hpanel-cron-job-view-output.png 1024w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/06\/hostinger-hpanel-cron-job-view-output-300x55.png 300w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/06\/hostinger-hpanel-cron-job-view-output-768x140.png 768w\" sizes=\"(max-width: 706px) 100vw, 706px\" \/><\/li>\n<\/ol><p>A text area appears displaying the log details or output generated by your script.<\/p><div class=\"intercom-container\">\n<h2 id=\"h_6abb09bb6b\">Troubleshoot an empty cron job output<\/h2>\n<p>If the output log is completely empty, it usually means the command or script does not generate any output by default.<br>\n<img decoding=\"async\" class=\"aligncenter wp-image-11575\" src=\"https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/06\/hostinger-hpanel-cron-job-output-empty.png\" alt=\"\" width=\"412\" height=\"128\" srcset=\"https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/06\/hostinger-hpanel-cron-job-output-empty.png 611w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/06\/hostinger-hpanel-cron-job-output-empty-300x93.png 300w\" sizes=\"(max-width: 412px) 100vw, 412px\" \/><\/p>\n<h3>Check for output silencing<\/h3>\n<p>Review your cron job command string. If it contains &gt;\/dev\/null 2&gt;&amp;1, the script is explicitly instructed to hide and discard all output. Removing this specific string from the command allows the system to log and display the output normally.<\/p>\n<h3>Add a test output to your script<\/h3>\n<p>If your script executes successfully but remains silent, you can add a temporary output command to confirm it runs. For example, add a test string to the beginning of your PHP script:<\/p>\n<\/div><pre><code>&lt;?php\r\necho \"hello world\";\r\n\/\/ ...\r\n?&gt;<\/code><\/pre><p class=\"no-margin\">When the cron job runs next, the message text appears in the output log.<\/p><p><img decoding=\"async\" class=\"aligncenter wp-image-11576\" src=\"https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/06\/hostinger-hpanel-cron-job-output.png\" alt=\"\" width=\"433\" height=\"136\" srcset=\"https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/06\/hostinger-hpanel-cron-job-output.png 605w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/06\/hostinger-hpanel-cron-job-output-300x94.png 300w\" sizes=\"(max-width: 433px) 100vw, 433px\" \/><\/p><div class=\"intercom-container intercom-align-center\">\n<p data-path-to-node=\"20\">The action completes successfully, allowing you to monitor your automated tasks at any time.<\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>View cron job execution results and troubleshoot empty outputs in hPanel<\/p>\n","protected":false},"author":581,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"include_on_kodee":true,"footnotes":""},"categories":[229],"tags":[],"class_list":["post-1022","post","type-post","status-publish","format-standard","hentry","category-cron-jobs"],"hreflangs":[{"locale":"en-US","link":"https:\/\/www.hostinger.com\/support\/5647075-how-to-check-the-output-of-a-cron-job-at-hostinger\/","default":1},{"locale":"es-ES","link":"https:\/\/www.hostinger.com\/es\/support\/5647075-como-verificar-la-salida-de-cron-job-en-hostinger\/","default":0},{"locale":"fr-FR","link":"https:\/\/www.hostinger.com\/fr\/support\/5647075-comment-verifier-la-sortie-de-la-tache-cron-chez-hostinger\/","default":0},{"locale":"id-ID","link":"https:\/\/www.hostinger.com\/id\/support\/5647075-bagaimana-cara-cek-output-cron-job-di-hostinger\/","default":0},{"locale":"pt-BR","link":"https:\/\/www.hostinger.com\/br\/support\/5647075-como-posso-ver-a-saida-de-uma-cron-job-no-hostinger\/","default":0},{"locale":"uk-UA","link":"https:\/\/www.hostinger.com\/ua\/support\/5647075-----\/","default":0}],"include_on_kodee":true,"_links":{"self":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/1022","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/users\/581"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/comments?post=1022"}],"version-history":[{"count":4,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/1022\/revisions"}],"predecessor-version":[{"id":11578,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/1022\/revisions\/11578"}],"wp:attachment":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/media?parent=1022"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/categories?post=1022"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/tags?post=1022"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}