How to check the output of a cron job at Hostinger

View cron job execution results and troubleshoot empty outputs in hPanel

Updated 1 day ago

After you set up a cron job 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.

Before you start

  • This guide applies to custom PHP or HTML websites on web, cloud, and agency hosting plans.
  • Hostinger Horizons and Hostinger Website Builder do not support cron jobs, as they are not file-based platforms.

Verify the cron job output

The execution results become available as soon as the scheduled task runs.

  1. Go to hPanel Websites
  2. Click on Dashboard next to the website where the cron job is created.
  3. On the sidebar, select Advanced Cron Jobs.
  4. Scroll down to the List of Cron Jobs section.
  5. Locate your cron job and click View Output.

A text area appears displaying the log details or output generated by your script.

Troubleshoot an empty cron job output

If the output log is completely empty, it usually means the command or script does not generate any output by default.

Check for output silencing

Review your cron job command string. If it contains >/dev/null 2>&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.

Add a test output to your script

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:

<?php
echo "hello world";
// ...
?>

When the cron job runs next, the message text appears in the output log.

The action completes successfully, allowing you to monitor your automated tasks at any time.