Cron Job Command Format in Cpanel Print

  • cron
  • 2

Here we will show you some easy cron job format to put into Cpanel command field so that you can activate your cron jobs on your Cpanel server.

NOTE: to prevent your cron sending you an email, at the end of the command put the following code.

>/dev/null 2>&1

We use this one quite a lot as its easy to view exactly where and which domain its on. The nice thing about this one is that you can put a remote url in the cron command.

/usr/bin/curl --user-agent YOURCRONNAME https://www.yourdomain.com/something.php >/dev/null 2>&1

This is a general use if you want to hide the cron script from the public eye.

/usr/local/bin/php /home/jucra/public_html/path/to/cron/script

Was this answer helpful?

« Back