cron is a Linux utility which schedules a command or script on your server to run automatically at a specified time and date. A cron job is the scheduled task itself. Cron jobs can be very useful to automate repetitive tasks.
For example, you can set a cron job to delete temporary files every week to conserve your disk space. Some programs, such as Drupal, may even require you to set up a cron job to perform certain functions.
Scripts executed as a cron job are typically used to modify files or databases. However, they can perform other tasks that do not modify data on the server, like sending out email notifications.
Cron jobs can be set to run by the minute, hour, day of the week, day of the month, month or any combination of these.
Cron Job Elements
Most cron jobs include three components:
- The script that is to be called or executed.
- The command that executes the script on a recurring basis (typically set in the cPanel).
- The action or output of the script (which depends on what the script being called does).
Most scripts that require the use of a cron job will give you specific setup instructions. If you are unsure, check with the author of your script before adding a cron job.
Cron Job Limits
Shared and Reseller
- You may NOT run a cron job more often than every 15 minutes.
VPS and Dedicated Server
- You may run a cron job as often as desired.
cURL, GET, and WGET
- cURL, GET and Wget are often used in cron jobs and are enabled on all joudiSoft servers by default. No further action to activate these functions are necessary.
The following articles are for reference only and links will open in a new tab. Please note that joudiSoft cannot offer direct support for the information provided below.
- 0 Users Found This Useful
What are Custom Pages for Errors? When your website generates an error, such as a 404, it...
Some scripts executed with a Cron Job require a specific php.ini file to be used. When...
What are Error Codes? All HTTP requests (the type of requests generated by your browser when...
In order to correctly set joudiSoft's servers to perform a desired task in the form of a cron...
Cron jobs run scheduled commands at specific times. The Cron Jobs tool in cPanel is helpful for...