+ -
当前位置:首页 → 问答吧 → 请教两个cron的问题

请教两个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

作者: suran   发布时间: 2009-09-22

1。会
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

热门下载

更多