59 23 * * * /usr/bin/mysql -uUsername -p'password' -e "update cacti.thold_data set thold_enabled='off' where id in(1,2,3)" > /tmp/m 2>&1 1 6 * * * /usr/bin/mysql -uUsername -p'password' -e "update cacti.thold_data set thold_enabled='on' where id in(1,2,3)" > /tmp/m2 2>&1 crontab+mysql命令行实现