– slash allows you to specify interval steps. For example, specifying 15,30,45 in first field means that the task will run at minute 15, 30, 45 of every hour. , – comma allows you to specify list of values. For example, 1-5 in first field means the task will run every minute during first 5 minutes of every hour. – – hyphen allows you to specify range of values. If it is placed in second field, it means every hour, and so on. If it is placed in first field, it means every minute. The first five time-based fields accept the following operators. It consists of 6 space-separated fields, first 5 fields are time-based fields and the last field is the command(s) to be run. You can create, view, edit this file using crontab -e command.Įach cron job needs to be specified in a separate line of crontab file and must follow the following syntax. How To Run Cron Job Every 5,10,15 MinutesĪll cron jobs are listen in a text file called crontab in Linux. These tasks can be performing back ups, checking for updates, sending emails, installing patches and so on. Cron jobs are commonly used for administration and maintenance of linux system, databases or websites. These intervals can be minutes, hours, days, weeks, months, day of the week, or a combination of these. In this article, we will look how to run cron job every 5, 10, 15 minutes.Įvery Linux system allows you to set up cron jobs to be run at user-specific intervals. Cron job is a task that can be run automatically at regular intervals.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |