wjq310

第一种是脚本执行了,但是报错:在crontab里调度运行,结果发现没有结果,查看/var/log/message 日志,发现crontab有执行,但是失败。

手动运行都是可以的,放在crontab里边发现就不能运行了。
处理方法:脚本中不要采用相对路径,全部改为绝对路径

第二种是编辑/var/spool/cron/user   user为执行用户名,一般为root
如更改后不起效果,请重新加载cron:
处理方法: /etc/init.d/cron reload 
 
第三种 用crontab -e  进行编辑
use the following command add entries to crontab should take effect right away.
#crontab -e

如还不行就从其服务:
处理方法:/etc/init.d/crond restart 

分类:

技术点:

相关文章:

  • 2022-12-23
  • 2021-07-08
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-18
猜你喜欢
  • 2021-12-17
  • 2022-12-23
  • 2021-12-10
  • 2022-12-23
  • 2021-12-10
  • 2021-12-10
  • 2021-12-16
相关资源
相似解决方案