Hosting

Checking the output of a cron job

If you are not sure whether a cron job is running correctly, you can verify it by running its command manually. Follow these steps:

  1. In cPanel, open the "Cron Jobs" option and copy the command you want to check.

Cron Jobs button in cPanel

  1. If the command ends with >/dev/null 2>&1, do not copy that part (it silences all output). For example, if the command is:
php -v >/dev/null 2>&1

You should only copy this:

php -v
  1. Go back to the main cPanel screen, open the "Terminal" and paste the command you copied. You will see the result of the execution on screen.

cPanel Terminal button

What if I get no output?

  • If the command returns no output and no error, we recommend talking to the developer of that application so they enable on-screen debugging and you get more information on each run.
  • If the result is an error or a message you do not understand, you can contact us and we will help you interpret it.
  • If you think the cron job is not running at all, edit it and save it again: this forces it to be re-registered.