{"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-10-29T14:53:26","modified_gmt":"2026-10-29T14:53:26","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\">Checking the output of a cron job at Hostinger shows whether a scheduled script on your web, cloud, or Agency hosting plan runs correctly. Open the Cron Jobs section in Hostinger dashboard and click View Output to read the log. An empty output usually means the script produces no output, or the command contains <code>&gt;\/dev\/null 2&gt;&amp;1<\/code>.<\/p>\n<h3>Before you start<\/h3>\n<ul>\n<li>This guide applies to custom PHP or HTML websites on web, cloud, and agency hosting plans.<\/li>\n<li>Hostinger AI Builder do not support cron jobs, as they are not file-based platforms.<\/li>\n<li>A cron job is already created for the website. To create one, see <a data-click-id=\"hgr-post-content-link-how-to-set-up-a-cron-job-at-hostinger\" href=\"\/support\/1583465-how-to-set-up-a-cron-job-at-hostinger\/\">How to set up a cron job at Hostinger.<\/a><\/li>\n<\/ul>\n<h2 id=\"h-verify-the-cron-job-output\">Verify the cron job output<\/h2>\n<p>The execution results become available as soon as the scheduled task runs.<\/p>\n<ol>\n<li>Go to Hostinger dashboard <span style=\"font-weight: 400\">\u2192 <\/span><a data-click-id=\"hgr-post-content-link-websites\" href=\"https:\/\/hpanel.hostinger.com\/websites\" target=\"_blank\" rel=\"noopener\"><span style=\"font-weight: 400\">Websites<\/span><\/a><\/li>\n<li>Hover over the website where the cron job is created and click <strong>Manage site.<\/strong><\/li>\n<li>On the sidebar, select <strong>Advanced<\/strong> <span style=\"font-weight: 400\">\u2192<\/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:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/55\/2026\/06\/hostinger-hpanel-cron-job-view-output.png\/public\" alt=\"\" width=\"706\" height=\"129\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/55\/2026\/06\/hostinger-hpanel-cron-job-view-output.png\/w=1024,fit=scale-down 1024w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/55\/2026\/06\/hostinger-hpanel-cron-job-view-output.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/55\/2026\/06\/hostinger-hpanel-cron-job-view-output.png\/w=768,fit=scale-down 768w\" sizes=\"(max-width: 706px) 100vw, 706px\" \/><\/li>\n<\/ol>\n<p>A text area appears displaying the log details or output generated by your script.<\/p>\n<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:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/55\/2026\/06\/hostinger-hpanel-cron-job-output-empty.png\/public\" alt=\"\" width=\"412\" height=\"128\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/55\/2026\/06\/hostinger-hpanel-cron-job-output-empty.png\/w=611,fit=scale-down 611w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/55\/2026\/06\/hostinger-hpanel-cron-job-output-empty.png\/w=300,fit=scale-down 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>\n<pre><code>&lt;?php\r\necho \"hello world\";\r\n\/\/ ...\r\n?&gt;<\/code><\/pre>\n<p class=\"no-margin\">When the cron job runs next, the message text appears in the output log.<\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-11576\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/55\/2026\/06\/hostinger-hpanel-cron-job-output.png\/public\" alt=\"\" width=\"433\" height=\"136\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/55\/2026\/06\/hostinger-hpanel-cron-job-output.png\/w=605,fit=scale-down 605w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/55\/2026\/06\/hostinger-hpanel-cron-job-output.png\/w=300,fit=scale-down 300w\" sizes=\"(max-width: 433px) 100vw, 433px\" \/><\/p>\n<div class=\"intercom-container intercom-align-center\">\n<p data-path-to-node=\"20\">Your cron job output now appears in the<strong> View Output<\/strong> log, so you can confirm each scheduled run directly in Hostinger dashboard.<\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Check the output of a cron job at Hostinger in the Cron Jobs section and fix an empty output by removing silencing or adding a test line.<\/p>\n","protected":false},"author":581,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_content_updated_date":"","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-\u044f\u043a-\u043f\u0435\u0440\u0435\u0432\u0456\u0440\u0438\u0442\u0438-\u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442-\u0432\u0438\u043a\u043e\u043d\u0430\u043d\u043d\u044f-\u0437","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":9,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/1022\/revisions"}],"predecessor-version":[{"id":22983,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/1022\/revisions\/22983"}],"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}]}}