How do I use Cron Jobs (Scheduled Task)

 

Setting up a Cron Job

  1. Login to CPanel Hosting Control Panel and click on Advanced->Cron Jobs
  2. If you want the system to email you whenever it runs a cron job type your email address in the Email field. (If you do not wish to receive an email notifying you of a specific cron job you can configure its command accordingly; see step 3 below.)
  3. Click Update Email.
  4. Configure the interval at which you wish to run the cron job
    • Common Settings — This menu allows you to select a commonly used interval without having to specify settings for the minute, hour, day, month, and so on.
    • Minute — Use this drop-down menu to select the number of minutes between running the cron job or the minute each hour on which you wish to run the cron job.
    • Hour — Use this drop-down menu to select the number of hours between running the cron job or the hour each day on which you wish to run the job.
    • Day — Use this drop-down menu to select the number of days between running the cron job or the day of the month on which you wish to run the job.
    • Month — Use this drop-down menu to select the number of months between running the job or the month of the year in which you wish to run the job.
    • Weekday — Use this drop-down menu to select the day(s) of the week on which you wish to run the job.
  5. In the Command field, type the command you wish the system to run.
    • Note: If you do not wish to receive an email notifying you of a specific cron job, add the following line to the command: >/dev/null 2>&1
  6. Click Add New Cron Job.

 

  • 1 Users Found This Useful
Was this answer helpful?

Related Articles

Where do I upload my website files?

Your account has both non-web accessible space and of course your web accessible space. Your user...

What are some account basics?

We'll explain some basic procedures and steps to use your account. Username and Passwords:...

How can I download a backup of my site?

Please login to your control panel and create a full backup. This may take a few minutes to...

How do I access cPanel?

You can access cPanel either by going into your client area, selecting your hosting account, and...