Linux/crontab:修订间差异
来自康健生活
| 第39行: | 第39行: | ||
Choose 1-4 [1]: 2 | Choose 1-4 [1]: 2 | ||
</syntaxhighlight>|$|/home/kangkk}} | </syntaxhighlight>|$|/home/kangkk}} | ||
之后就可以编写执行命令了。 | |||
<syntaxhighlight lang="bash"> | |||
# Edit this file to introduce tasks to be run by cron. | |||
... | |||
# For more information see the manual pages of crontab(5) and cron(8) | |||
# | |||
# m h dom mon dow command | |||
# 添加执行脚本 | |||
# 每天凌晨 1 点 | |||
0 1 * * */var/www/html/mediawiki_back.sh | |||
# 每天凌晨 3 点 | |||
0 3 * * */home/kangwuyi/www-mediawiki-db/mysql_back.sh | |||
</syntaxhighlight> | |||
=== 示例 === | === 示例 === | ||
这里有一些示例,是来源于 [http://crontab.org/ crontab.org] | 这里有一些示例,是来源于 [http://crontab.org/ crontab.org] | ||