请教两个cron的问题
时间:2009-09-22
来源:互联网
1,默认crontab中没有定义cron.daily,weekly...文件夹,里面的计划任务会执行吗?
2,这一段的作用是.....?
# check scripts in cron.hourly, cron.daily, cron.weekly and cron.monthly
59 * * * * root rm -f /var/spool/cron/lastrun/cron.hourly
9 3 * * * root rm -f /var/spool/cron/lastrun/cron.daily
19 4 * * 6 root rm -f /var/spool/cron/lastrun/cron.weekly
29 5 1 * * root rm -f /var/spool/cron/lastrun/cron.monthly
*/10 * * * * root test -x /usr/sbin/run-crons && /usr/sbin/run-crons
2,这一段的作用是.....?
# check scripts in cron.hourly, cron.daily, cron.weekly and cron.monthly
59 * * * * root rm -f /var/spool/cron/lastrun/cron.hourly
9 3 * * * root rm -f /var/spool/cron/lastrun/cron.daily
19 4 * * 6 root rm -f /var/spool/cron/lastrun/cron.weekly
29 5 1 * * root rm -f /var/spool/cron/lastrun/cron.monthly
*/10 * * * * root test -x /usr/sbin/run-crons && /usr/sbin/run-crons
作者: suran 发布时间: 2009-09-22
1。会
2。http://www.gentoo.org/doc/en/cron-guide.xml
2。http://www.gentoo.org/doc/en/cron-guide.xml
引用:
4. Using cronbase * They will run even if your computer was off when they were scheduled to run * It is easy for package maintainers to place scripts in those well defined places * You know exactly where your cron-jobs and your crontab are stored, making it easy for you to backup and restore this part of your system |
作者: wecoh 发布时间: 2009-09-23
引用:
作者: wecoh
1。会
2。http://www.gentoo.org/doc/en/cron-guide.xml |
第一个问题还有一点不明白,既然不用定义cron.monthly/ cron.weekly/
cron.daily/ cron.hourly/
那么它们是在什么时间执行的?
--------------------------------------------------------------
srx shom # cat /etc/cron.daily/makewhatis
#!/bin/sh
# this is part of the man package
# it updates the search database for manpages
exec nice makewhatis -u
作者: suran 发布时间: 2009-09-23
相关阅读 更多
热门阅读
-
office 2019专业增强版最新2021版激活秘钥/序列号/激活码推荐 附激活工具
阅读:74
-
如何安装mysql8.0
阅读:31
-
Word快速设置标题样式步骤详解
阅读:28
-
20+道必知必会的Vue面试题(附答案解析)
阅读:37
-
HTML如何制作表单
阅读:22
-
百词斩可以改天数吗?当然可以,4个步骤轻松修改天数!
阅读:31
-
ET文件格式和XLS格式文件之间如何转化?
阅读:24
-
react和vue的区别及优缺点是什么
阅读:121
-
支付宝人脸识别如何关闭?
阅读:21
-
腾讯微云怎么修改照片或视频备份路径?
阅读:28