Skip to main content
All CollectionshPanelCron Jobs
How to Check the Output of a Cron Job
How to Check the Output of a Cron Job

Viewing output of your Cron Job in hPanel

Updated over a year ago

After you set up a Cron Job in hPanel, you will see it in the List of Cron Jobs section. To view the result, wait for the Cron Job to be executed (based on the schedule which you set) and click on View Output:

What to Do if the Output is Empty?

If your Job's output is empty, most likely, the command you run doesn't imply an output:

For example, the line >/dev/null 2>&1 in the Cron Job is meant exactly for hiding output, and if you remove it, you'll see the output normally.

As one of the solutions, you can add a task to send a simple text phrase when the cron job is executed, e.g., by adding these lines to your PHP script:

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

The result will look like this:

Did this answer your question?