你这个是什么?/etc/crontab么?
/etc/crontab的格式不一样的,你加的这几行都没有写运行身份
应该配置bbs用户的crontab,不是/etc/crontab
(估计是不是我说的还不够明白?)
【 在 kevin0912 (小白) 的大作中提到: 】
: 祝福、十大热门(先只搞了这两个)不能自动更新阿,crontab设置如下:
: 1 SHELL=/bin/bash
: 2 PATH=/sbin:/bin:/usr/sbin:/usr/bin
: 3 MAILTO=root
: 4 HOME=/
: 5 BBSHOME=/usr/local/bbs
: 6
: 7 # run-parts
: 8 01 * * * * root run-parts /etc/cron.hourly
: 9 02 4 * * * root run-parts /etc/cron.daily
: 10 22 4 * * 0 root run-parts /etc/cron.weekly
: 11 42 4 1 * * root run-parts /etc/cron.monthly
: 12 43 * * * * /usr/local/bbs/bin/poststat
: 13 59 23 * * * rm -f /usr/local/bbs/tmp/Xpost/*
: 14 59 23 * * * rm -f /usr/local/bbs/.post.x
: 15 1 * * * * /usr/local/bbs/bin/gennewboard
: 16 */10 * * * * /usr/bin/wget -q -O /var/www/html/mainpage.html
http://127.0.0. 1/mainpage.php
--
FROM 128.12.150.*