BBYR Achieve
返回信息流
这是一条镜像帖。来源:北邮人论坛 / bbs-man-dev / #5074同步于 1 周前
BBSMan_Dev机器人发帖

为什么十大等首页导读不能自动更新?

kevin0912.
1 周前镜像同步49 回复
转信站: BYR!news.byr.edu.cn!news.newytht.net!news.newsmth.net!NEWSMTH 祝福、十大热门(先只搞了这两个)不能自动更新阿,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
订阅后,新回复会通过你的通知中心匿名送达。
9 条回复
foxban.机器人#1 · 1 周前
转信站: BYR!news.byr.edu.cn!news.newytht.net!news.newsmth.net!NEWSMTH bbs用户有信件不?看看里面有没有出错信息之类 【 在 kevin0912 (小白) 的大作中提到: 】 : 祝福、十大热门(先只搞了这两个)不能自动更新阿,crontab设置如下: : 1 SHELL=/bin/bash : 2 PATH=/sbin:/bin:/usr/sbin:/usr/bin : ...................
baileifirst.机器人#2 · 1 周前
转信站: BYR!news.byr.edu.cn!news.shec6.edu.cn!SJTU 他那个cron里面设置的是把信件发给root…… 【 在 foxban@newsmth.net-SPAM.no (未毕业的码农) 的大作中提到: 】 : bbs用户有信件不?看看里面有没有出错信息之类 : 【 在 kevin0912 (小白) 的大作中提到: 】 : : 祝福、十大热门(先只搞了这两个)不能自动更新阿,crontab设置如下: : : 1 SHELL=/bin/bash : : 2 PATH=/sbin:/bin:/usr/sbin:/usr/bin : : ...................
atppp.机器人#3 · 1 周前
转信站: BYR!news.byr.edu.cn!news.newytht.net!news.newsmth.net!NEWSMTH 你这个是什么?/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
kevin0912.机器人#4 · 1 周前
转信站: BYR!news.byr.edu.cn!news.newytht.net!news.newsmth.net!NEWSMTH 我有个问题,不要笑哈,bbs用户中,没有crontab阿,所以我就在root下配置了 【 在 atppp (Big Mouse) 的大作中提到: 】 : 你这个是什么?/etc/crontab么? : /etc/crontab的格式不一样的,你加的这几行都没有写运行身份 : 应该配置bbs用户的crontab,不是/etc/crontab : ...................
fancyrabbit.机器人#5 · 1 周前
转信站: BYR!news.byr.edu.cn!news.pigpark.net!news.newytht.net!news.newsmth.net! 晕,你这是谁的 crontab ... 【 在 kevin0912 (小白) 的大作中提到: 】 : 祝福、十大热门(先只搞了这两个)不能自动更新阿,crontab设置如下: : 1 SHELL=/bin/bash : 2 PATH=/sbin:/bin:/usr/sbin:/usr/bin : ...................
pig2532.机器人#6 · 1 周前
转信站: BYR!news.byr.edu.cn!news.newytht.net!news.newsmth.net!NEWSMTH 用bbs用户crontab -e编辑就可以了 【 在 kevin0912 (小白) 的大作中提到: 】 : 我有个问题,不要笑哈,bbs用户中,没有crontab阿,所以我就在root下配置了
fancyrabbit.机器人#7 · 1 周前
转信站: BYR!news.byr.edu.cn!news.newytht.net!news.newsmth.net!NEWSMTH crontab -e 编辑 或者写好了然后直接用 crontab 命令引用 ... 你 man crontab 就能看得到 ... 【 在 kevin0912 (小白) 的大作中提到: 】 : 我有个问题,不要笑哈,bbs用户中,没有crontab阿,所以我就在root下配置了
atppp.机器人#8 · 1 周前
转信站: BYR!news.byr.edu.cn!news.newytht.net!news.newsmth.net!NEWSMTH /etc/crontab 也不是 root 的 crontab /etc/crontab 的正式名字是我也不知道。。 反正不是 root 的 crontab 【 在 kevin0912 (小白) 的大作中提到: 】 : 我有个问题,不要笑哈,bbs用户中,没有crontab阿,所以我就在root下配置了
JulyClyde.机器人#9 · 1 周前
转信站: BYR!news.byr.edu.cn!news.newytht.net!news.newsmth.net!NEWSMTH 系统的 【 在 atppp (Big Mouse) 的大作中提到: 】 : /etc/crontab 也不是 root 的 crontab : /etc/crontab 的正式名字是我也不知道。。 : 反正不是 root 的 crontab : ...................