Skip to content

Commit 5062fee

Browse files
committed
add a missing command synopsis
1 parent d96f7e9 commit 5062fee

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

tool/crontab.rst

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ crontab 定时任务
77

88
命令格式
99
--------------
10-
crontab [-u user] [ -e | -l | -r ]
10+
crontab [-u user] file
11+
crontab [-u user] [ -e | -l | -r ]
1112

1213
命令参数
1314
-----------
@@ -26,7 +27,7 @@ crontab的文件格式
2627
- 第2列小时1~23(0表示子夜)
2728
- 第3列日1~31
2829
- 第4列月1~12
29-
- 第5列星期0~6(0表示星期天
30+
- 第5列星期0~7(0和7表示星期天
3031
- 第6列要运行的命令
3132

3233

@@ -181,7 +182,7 @@ crontab的文件格式
181182
source /etc/profile
182183
export RUN_CONF=/home/d139/conf/platform/cbp/cbp_jboss.conf
183184
/usr/local/jboss-4.0.5/bin/run.sh -c mev &
184-
3当手动执行脚本OK,但是crontab死活不执行时,很可能是环境变量惹的祸,可尝试在crontab中直接引入环境变量解决问题。如::
185+
3. 当手动执行脚本OK,但是crontab死活不执行时,很可能是环境变量惹的祸,可尝试在crontab中直接引入环境变量解决问题。如::
185186

186187
0 * * * * . /etc/profile;/bin/sh /var/www/java/audit_no_count/bin/restart_audit.sh
187188

0 commit comments

Comments
 (0)