我买了wndr3700V4刷openwrt,写个脚本,想让crontab定时执行这个脚本,没运行。脚本如下:
#!/bin/sh
top -n 1| head -n 8 >> /root/history.txt
我直接运行可用。然后在luci计划任务添加*/1 * * * * /root/cron_ss
但是/root/history.txt一直没生成,应该是没运行。
我cronttab服务有开启。/etc/init.d/cron enable ,/etc/init.d/cron start都执行过。但都没作用,求解
我刷的是http://www.blazebox.homeip.net/~diffie/openwrt/barrier_breaker/这个,版本r42323
#!/bin/sh
top -n 1| head -n 8 >> /root/history.txt
我直接运行可用。然后在luci计划任务添加*/1 * * * * /root/cron_ss
但是/root/history.txt一直没生成,应该是没运行。
我cronttab服务有开启。/etc/init.d/cron enable ,/etc/init.d/cron start都执行过。但都没作用,求解
我刷的是http://www.blazebox.homeip.net/~diffie/openwrt/barrier_breaker/这个,版本r42323