标签:tab ash root cron lan shel 定时任务 file 通过
通过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}
标签:tab ash root cron lan shel 定时任务 file 通过
原文地址:https://www.cnblogs.com/HYanqing/p/12213185.html