The best ways to set up a scheduled task (cron job) in CPanel
Before we go into specifics concerning setting up timetables activities, permit us see what specifically a cron job is and what its use is. Cron Job is a scheduled activity done at pre-defined intervals on a hosting server. It's a series of activities work on a script documents.
..
Log in to cpanel and scroll down to "Advanced" part and you will discover "Cron Job".
..
Before you start the cron job, you should add a cron email. This is the email where you would choose to obtain alerts concerning the activity. Enter your email id and hit the "Update Email" button.
.Now, permit's configuration a cron job. Configure the environments yourself.
.· With the Usual Environments, you can define a commonly made use of time without fixing a particular date, time or hour.
.· With the Moment, you can define the moments of carrying out the cron job or the specific moment at every hour where you intend to carry out the cron job.
.· With the Hour, you can define the hours of carrying out the cron job or the specific hour when you intend to carry out the cron job.
.· With the Day, you can define the days of carrying out the cron job or the specific days in a month when you intend to carry out the cron job.
.· With the Month, you can define the month of carrying out the cron job or the specific month of the year when you intend to carry out the cron job.
..
Upcoming in the area "Command", type in the command that you desire to carry out and hit the "Add New Cron Job".
.So now, you have added a cron job.
.Upcoming, permit's discover to edit a cron job.
.For editing, pick the cron job that you intend to edit, select the "Edit" button, edit the environments and select "Edit Line".
.Deleting Cron Job is rather basic. Select the cron job to remove, go to the "Remove" button and confirm your action if you make certain.
.So, this was about setting up cron jobs in cPanel.
.
Geen opmerkingen:
Een reactie posten