Cron Job Command Format in Cpanel

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 >/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
  • cron
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

I want to transfer my domains/hosting and/or email to JUCRA Digital

You are reading this article because you would like us to take over your domain, hosting and/or...

What DNS Nameservers should I use?

For your hosting at JUCRA Digital, please use the following nameservers. DNS NAME IP...

Why is my site running slow? Understanding CloudLinux LVE Resource Usage

Sometimes we are asked "why is my site running slow" or "why am I getting kicked out of my site"...

My site won't run on php 7+. What versions of php do you support?

You are reading this article because you have a website on our servers and when you switch to PHP...

Enabling HSTS in Cpanel

ABOUT HSTS HTTP Strict Transport Security (HSTS) instructs web browsers to only use secure...