- 论坛徽章:
- 0
|
注意这个etc/crontab,非我们平时书上看到的crontab格式
他只会运行 cron.daily/ cron.hourly/ cron.monthly/ cron.weekly/ 下面的脚本
你以root身份 crontab -e 编辑你的crontab,添加
30 11 * * * /usr/sbin/xxxx
试试看
《How Linux Works:What Every Super-User Should Know》中有提到
System Crontab Files
Rather than use the superuser's crontab for scheduling recurring system tasks, Linux distributions normally have an /etc/crontab file. Do not use the crontab command to edit this file; it has a slightly different format with one more field — the user that should run the job.
[ 本帖最后由 hahasasa 于 2008-7-4 14:02 编辑 ] |
|