-
Linux Crontab语法
Crontab语法
Lists
链表值
: 逗号,
表示并列,要依次序;Examples:"1,2,5,9", "0-4,8-12"
.
Ranges of numbers
区间值
: 连字符-
, 'a-b'表示[a, b]区间的每个整值.
Asterisk
*
遍历值 : *
或者*/1
表示基本单位步长
的区间值"first through last".
, 即
minute
用*表示没分钟
hour
用*表示每小时
day
用* 表示每日
month
用* 表示每月
dow
用* 表示每周的这一天.
Step values /n
步长值 /n
- Conjunction with ranges与区间值复合使用 :
*/n
, n表示间隔长度. Example, "0-23/2" can be used in the hours field to specify command execution every other hour.
- Steps are also permitted after an asterisk. 步长值与遍历值结合使用. Example so if you want to say "every two hours", you can use "*/2".
Names
缩写值
: Month
和Week
can also be used for the "month" and "day of week" fields.
- Use the
first three letters
of the particular day
or month
(case doesn't matter). 单词3首字母, 不分大小写.
- Ranges or lists of names are not allowed.不能使用
区间值
和链表值
.
- 组合使用:
-
优先级高于/
, 如a-b/c
(day)每隔c
天的a
到b
之间执行操作.
<minute> <hour> <day> <month> <dow> <command>
第1列 第2列 3 4 5 6
第1列: 分钟1~59 每分钟用`*`或者` */1`表示
第2列: 小时1~23(0表示0点)
第3列: 日期1~31
第4列: 月份1~12
第5列: 星期0~6(0表示星期天)
第6列: 要运行的命令
-
相关阅读:
在数据库里进行分页处理
new Date()在IE,谷歌,火狐上的一些注意项
sql的一些小东西
将sql数据库逆向生成PDM模型
关于禁止在 .NET Framework 中执行用户代码。启用 "clr enabled" 配置选项
MVC的Model层中的一些便签
通过URL推送POST数据
Python 关键字
Python 标识符
Python 注释(Python Comments)用法详解
-
原文地址:https://www.cnblogs.com/xiangwengao/p/4624265.html
Copyright © 2020-2023
润新知