Linux中crontab不执行的解决办法

crontab不执行的问题困扰了好长时间,脚本写的都正确,但是就是不执行,最终解决方法如下:

crontab -u root /var/spool/cron/root

这样root用户的crontab就生效了

service crond restart

重启下服务就好了

原文地址:
http://lxy.me/solve-the-crontab-does-not-the-execute.html

This entry was posted in Technology and tagged , , . Bookmark the permalink. 4,807 views

Related Posts

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>