File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -128,7 +128,7 @@ $ crontab -l
128128
129129### 实例12:晚上11点到早上7点之间,每隔一小时重启smb
130130命令:
131- * 23-7/1 * * * /etc/init.d/smb restart
131+ 0 23-7 * * * /etc/init.d/smb restart
132132
133133### 实例13:每月的4号与每周一到周三的11点重启smb
134134命令:
Original file line number Diff line number Diff line change @@ -154,7 +154,7 @@ $ crontab <filename>
154154实例12:晚上11点到早上7点之间,每隔一小时重启smb
155155~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
156156命令:
157- * 23-7/1 * * * /etc/init.d/smb restart
157+ 0 23-7 * * * /etc/init.d/smb restart
158158
159159实例13:每月的4号与每周一到周三的11点重启smb
160160~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Original file line number Diff line number Diff line change @@ -162,7 +162,7 @@ crontab的文件格式
162162~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
163163::
164164
165- * 23-7/1 * * * /etc/init.d/smb restart
165+ 0 23-7 * * * /etc/init.d/smb restart
166166
167167使用注意事项
168168-----------------------
You can’t perform that action at this time.
0 commit comments