停止我的 crontab 中的自动评论

停止我的 crontab 中的自动评论

我在我的 crontab 中添加了下面的 cron 作业:

0 5 * * * /bin/systemctl restart gb_subagent.service
28 13 * * * /home/comment.sh &>/tmp/errorcron.log
29 13 * * * bash /home/kill_slony_stop_sql.sh &>/tmp/errorcron.log
30 13 * * * /home/kill_brole_and_slonik.sh &>/tmp/errorcron.log
31 13 * * * /home/uncomment.sh &>/tmp/errorcron.log

并且似乎每次执行时,都会添加许多注释行crontab

\# DO NOT EDIT THIS FILE - edit the master and reinstall.
\# (/var/tmp/cron installed on Mon Apr 13 09:03:58 2015)
\# (Cronie version 4.2)
\# DO NOT EDIT THIS FILE - edit the master and reinstall.
\# (/var/tmp/cron installed on Mon Apr 13 09:00:57 2015)
\# (Cronie version 4.2)

我怎样才能让他们不添加评论,或者将他们重定向到文件?

相关内容