My
Ideal
Host
We do more than just host websites
Customer login
HOME
WEB
HOSTING
RESELLER HOSTING
CUSTOMER SUPPORT
TUTORIALS
COMPANY
View source
for
Cronjob
<seo title="Cronjob" metakeywords="cron job,job schedule,job scheduling,set cron,cron script,what is cron,cronjob,add cron" metadescription="Cronjob" /> <div align=justify>'''What is cron?''' Cron is the name of an automated program setup for Linux & Unix operating systems that allows the users to execute commands or cron scripts automatically at a specific time/date. A cron job can be used for many services such as downloading mails or providing backup for a database, therefore, being a very useful tool. All you need to do is to set the program up once in order for it to continuously complete the job. '''How to add cron?''' You can add cron jobs via '''cPanel => Advanced => Cron Jobs'''. There you'll be asked to set the '''Cron Email'''. This is the email address at which you would like to receive notifications whenever your cron scripts are run. To set the cron email simply enter the address needed into the '''Email''' filed and click '''Update email'''. Follow these steps to set cron job scheduling: '''1'''. Configure the time interval at which you would like to run the cron job. * Common Settings — Using this menu you can select a commonly used interval without having to specify settings for the minute, hour, day, month, and so on. * Minute — Use this drop-down menu to select the number of minutes between running the cron job, or the minute each hour you wish to run the job scheduling on. * Hour — Use this drop-down menu to select the number of hours between running the cron job, or the hour each day you wish to run the cronjob on. * Day — Use this drop-down menu to select the number of days between running the cron job, or the day of the month you wish to run the cron job on. * Month — Use this drop-down menu to select the number of months between running the cron job, or the month of the year you wish to run the cronjob in. * Weekday — Use this drop-down menu to select the day(s) of the week you wish to run the cronjob on. '''2'''. In the Command field, type the command or cron script you wish the system to run. '''Note''': If you do not want to receive an email notifications of a specific cron job, add the following line to the command: '''''>/dev/null 2>&1''''' '''3'''. Click '''Add New Cron Job''''. Now you know how to add a cron job, but note that you need to have a good knowledge of Linux commands before you can use cron jobs effectively. Your cronjobs will look like this: '''''1 2 3 4 5 /path/to/command arg1 arg2''''' where * * * * * command to be executed 1 2 3 4 5 | | | | | | | | | ----- Day of week (0 - 7) | | | ------- Month (1 - 12) | | --------- Day of month (1 - 31) | ----------- Hour (0 - 23) ------------- Minute (0 - 59) All set cron jobs are displayed under the '''Current Cron Jobs''' table.</div>
Return to
Cronjob
.
Navigation
Hosting Issues
Cloud Hosting
Billing Issues
FAQ
Articles
News
Interesting from the web
Search
Subscribe to our newsletters