Overview:
A cron job is a tool used to schedule tasks or commands to run automatically at a designated time or interval. It is often used for automating routine maintenance or administration tasks. To avoid causing undue strain on your system and potentially encountering performance issues, it's important to ensure that any cron jobs you create are scheduled to run no more than once every 5 minutes.
Method:
- Log in to your cPanel account.
- Navigate to the "Cron Jobs" tool under the "Advanced" category.
- Under "Add New Cron Job," select the interval at which you want the cron job to run from the "Common Settings" drop-down menu.
- You can set custom time by filling in the fields for "Minute", "Hour", "Day", "Month" and "Weekday".
- In the "Command" field, enter the command that you want to run as the cron job.
- Click on the "Add New Cron Job" button to save the cron job.