通过shell脚本增加定时任务:#CRON_FILE="/var/spool/cron/root" (centos系统) CRON_FILE="/var/spool/cron/crontabs/root"(ubantu系统) grep "cron_one_min.sh" ${CRON_FILE}|| echo "01 * * * * bash /data/server/cron/one_min.sh" >> ${CRON_FILE}查看定时任务:#crontab -l
#crontab -l