How do I setup a CronJob?

Overview

Cron jobs allow you to automate certain commands or scripts on your server to complete repetitive tasks automatically. A cron job allows you to run a certain command at times set by the job. For example, you could set a cron job to delete temporary files every week so that your disk space is not being used up by those files.

It is important that you familiarize yourself with how cron jobs work. You need to have a good knowledge of Linux commands before you can use cron jobs effectively, especially when using the "Advanced (Unix Style)." Check your script with your hosting administrator before adding a cron job.

Using The Standard GUI

Steps
  1. Click on the Standard button.
  2. The first option request that you enter the email address where you want the output of your cron job files to be sent. Enter the email address in the text box provided.
  3. By default, "Entry 1" will be available to you. The first option is "Command to run." Enter the command or path to a script/file you want to run in the text box.
  4. Below the "Command to run" are five options for setting the time and frequency your cron job will run:
    • Minute(s)
    • Hours(s)
    • Days(s)
    • Month(s)
    • Weekday(s)

Select from each of the categories accordingly.

  1. Next, click on the Save Crontab to create the cron job entry. Or if you want to reset the modifications you have made back to the default settings, click on the Reset Changes button.
  2. A confirmation page will be shown stating "Cron Updated!" Click on the Go Back button to return to the main Cron Job screen.

Using the Advanced (Unix Style) Option

Steps
  1. Click on the Advanced (Unix Style) Option button.
  2. The first option request that you enter the e-mail address where you want the output of your cron job files to be sent. Enter the e-mail address in the text box provided.
  3. Next, enter the Minute, Hour, Day, Month, Weekday and Command in the text boxes provided.
  4. Next, click on the Save Crontab to create the cron job entry. Or if you want to reset the modifications you have made back to the default settings, click on the Reset Changes button.
  5. A confirmation page will be shown stating "Cron Updated!" Click on the Go Back button to return to the main Cron Job screen.
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

How do I remove an Addon Domain?

Overview You can set any of your Addon Domains to point to a different location on your web site...

How do I view how much disk space my web hosting account is using?

Overview You can modify the amount of disk space allocated to any of the available FTP accounts....

How do I send email from ASP using SMTP Authentication.

Please note that our mail server is configured with Authentication. Below is...

How do I view and manage FTP account holders on my web site that are currently logged in to an FTP session?

Overview You can use this function to see who is currently logged into your site through FTP....

How do I setup an email forwarder for an individual email account?

Overview Forwarders allow you to send a copy of all mail from one email address to another. For...

Powered by WHMCompleteSolution