2018-06-15
/etc/init.d/rcS
if [ ! -f "/root/beijing.txt" ]; then
if [ -f "/root/jinan.txt" ]; then
ifconfig eth0 192.168.99.46
route add default gw 192.168.99.1
echo "nameserver 8.8.4.4">> /etc/resolv.conf
fi
fi
mkdir -p /var/spool/cron/crontabs
crontab /etc/crontab
crond
#python /root//web_moderm_temperature/multi_report_web.py &
/etc/crontab
*/1 * * * * /usr/bin/python /root/web_moderm_temperature/once_report_web.py