cPanel® Hosting

What is cPanel®
Logging in/out
Server information
Mail
Change Password
Aliases (Parked Domains)
Addon Domains
Subdomains
FTP Manager
File Manager
Disk Usage
Password protect directories
Error pages
MySQL
Redirects
FrontPage Extensions
Web/FTP Stats
Subdomain Stats
Raw Access Logs
CGI Center
MIME types
Apache handlers
Hotlink Prevention
Index Manager
IP Deny Manager

Cron jobs

Cron Jobs button
Cron jobs allow you to automate repetitive tasks on the server that hosts your web site. This is a powerful tool that allows you to take a hands-free approach to repetitive tasks. For example, you could add a cron job that automatically copies a MySQL database to a separate location on your site as a backup.

There are two different modes you can use to add a cron job:

  • Standard - Provides a range of pre-set options that you can choose. This is the simplest method and is recommended.
  • Advanced (Unix Style) - Provides the regular Unix style cron options. Recommended for users who are used to this method of entering cron entries.

Warning: You need to have a good knowledge of Linux commands before you can use cron jobs effectively. Check your script with your hosting administrator before adding a cron job.

To add or modify a cron job:

  1. Click on the Cron jobs button on the home page.
  2. If you want to use the Standard mode, click on the Standard button.
    1. Enter the email address to send the results of running the cron job in the top field.
    2. Enter the command the you want to run in the Command to run field.
    3. Click on one option from each of the available lists.
    4. Click on the Save Crontab button. Your cron job has now been added or updated.
      Note: You can always click on the Reset Changes button to change the cron job back to whatever it was before you started entering information.
    Adding a cron job (Standard mode)
    If you want to use the Advanced mode, click on the Advanced (Unix Style) button.
    1. Enter the times for the cron job in the Minute, Hour, Day, Month, or Weekday fields.
    2. Enter the cron job script in the Command field.
    3. Click on the Commit Changes button. Your cron job has now been added or updated.
      Note: You can always click on the Reset Changes button to change the cron job back to whatever it was before you started entering information.
Adding a cron job (Advanced mode)

Topics:

Deleting a cron job