路由器定时执行命令

By | 2018-11-27
0 1 * * 6 wget -O- ‘http://ftp.apnic.net/apnic/stats/apnic/delegated-apnic-latest’ | awk -F\| ‘/CN\|ipv4/ { printf(“%s/%d\n”, $4, 32-log($5)/log(2)) }’ > /etc/chinadns_chnroute.txt
0 6 * * * /sbin/ifup wan
0 6 * * 1,3,5,7 /sbin/reboot

發佈回覆