Examples of crontab expressions
来源:互联网 发布:河北师范大学网络教学 编辑:程序博客网 时间:2024/06/07 20:06
Examples of crontab expressions
Following are examples of crontab expressions and how they would interpreted as a recurring schedule.
* * * * *
This pattern causes a task to be launched every minute.
5 * * * *
This pattern causes a task to be launched once every hour and at the fifth minute of the hour (00:05, 01:05, 02:05 etc.).
* 12 * * Mon
This pattern causes a task to be launched every minute during the 12th hour of Monday.
* 12 16 * Mon
This pattern causes a task to be launched every minute during the 12th hour of Monday, 16th, but only if the day is the 16th of the month.
59 11 * * 1,2,3,4,5
This pattern causes a task to be launched at 11:59AM on Monday, Tuesday, Wednesday, Thursday and Friday. Every sub-pattern can contain two or more comma separated values.
59 11 * * 1-5
This pattern is equivalent to the previous one. Value ranges are admitted and defined using the minus character.
*/15 9-17 * * *
This pattern causes a task to be launched every 15 minutes between the 9th and 17th hour of the day (9:00, 9:15, 9:30, 9:45 and so on... note that the last execution will be at 17:45). The slash character can be used to identify periodic values, in the form of a/b. A sub-pattern with the slash character is satisfied when the value on the left divided by the one on the right gives an integer result (a % b == 0).
* 12 10-16/2 * *
This pattern causes a task to be launched every minute during the 12th hour of the day, but only if the day is the 10th, the 12th, the 14th or the16th of the month.
* 12 1-15,17,20-25 * *
This pattern causes a task to be launched every minute during the 12th hour of the day, but the day of the month must be between the 1st and the 15th, the 20th and the 25, or at least it must be the 17th.
Following are examples of crontab expressions and how they would interpreted as a recurring schedule.
* * * * *
This pattern causes a task to be launched every minute.
5 * * * *
This pattern causes a task to be launched once every hour and at the fifth minute of the hour (00:05, 01:05, 02:05 etc.).
* 12 * * Mon
This pattern causes a task to be launched every minute during the 12th hour of Monday.
* 12 16 * Mon
This pattern causes a task to be launched every minute during the 12th hour of Monday, 16th, but only if the day is the 16th of the month.
59 11 * * 1,2,3,4,5
This pattern causes a task to be launched at 11:59AM on Monday, Tuesday, Wednesday, Thursday and Friday. Every sub-pattern can contain two or more comma separated values.
59 11 * * 1-5
This pattern is equivalent to the previous one. Value ranges are admitted and defined using the minus character.
*/15 9-17 * * *
This pattern causes a task to be launched every 15 minutes between the 9th and 17th hour of the day (9:00, 9:15, 9:30, 9:45 and so on... note that the last execution will be at 17:45). The slash character can be used to identify periodic values, in the form of a/b. A sub-pattern with the slash character is satisfied when the value on the left divided by the one on the right gives an integer result (a % b == 0).
* 12 10-16/2 * *
This pattern causes a task to be launched every minute during the 12th hour of the day, but only if the day is the 10th, the 12th, the 14th or the16th of the month.
* 12 1-15,17,20-25 * *
This pattern causes a task to be launched every minute during the 12th hour of the day, but the day of the month must be between the 1st and the 15th, the 20th and the 25, or at least it must be the 17th.
- Examples of crontab expressions
- Java 8 Lambda Expressions by Examples
- Java 8 Lambda Expressions Tutorial with Examples
- Syntax of Lambda Expressions
- Translation of Lambda Expressions
- Examples of GNU Date
- some examples of condensation
- Examples of MAC
- Examples of JSON encoding
- Examples of HttpRequest
- Examples of using minFunc
- Linux Crontab:15 Awesome Cron Job Examples
- Linux Crontab: 15 Awesome Cron Job Examples
- 7 Python Regular Expressions Examples – Re Match Search FindAll
- A Tao of Regular Expressions
- The forms of lambda expressions
- some examples of awk & sed
- Yii Examples of Using CDbCriteria
- new operator、operator new 、placement new三者之间的区别与联系
- java 利用DOM写入XML文档
- CSS背景图拉伸自适应尺寸,全浏览器兼容
- Microsoft C++ exception: EEResourceException(orig. IS2120@BG57IV3)
- C语言中的free函数
- Examples of crontab expressions
- ubuntu 下打开windows 文件 程序代码 出现乱码,或者windows打开ubuntu下文件乱码
- 工具类 - 运算
- poj 2182
- shtml
- 各浏览器的userAgent对照表
- ue快捷键一览 UltraEdit (UE) 快捷键 ue 复制并粘贴当前行
- QT Embedded之QWSClient
- 深度剖析“引用传递”与“指针传递”的区别