【问题标题】:Crontab not working for one shell script among set of scriptsCrontab 不适用于一组脚本中的一个 shell 脚本
【发布时间】:2017-04-15 18:35:05
【问题描述】:

我已经使用 crontab 安排了 5 个作业,并且除了一个之外的所有作业都在执行。入口模式是这样的

05 08 * * * /appllib/int/exe/script1.sh
05 08 * * * /appllib/int/exe/script2.sh
10 08 * * * /appllib/int/exe/script3.sh
40 08 * * * /appllib/int/exe/script4.sh
30 07 * * * /appllib/int/exe/script5.sh

我在最后一个条目之后还有一个换行符。除了script5.sh 之外的所有内容都将被执行。

【问题讨论】:

  • 您是否为拥有此 crontab 的用户检查过新邮件?
  • 可以手动运行脚本吗?是否正确设置了执行权限位?也适用于团体/其他?

标签: shell unix crontab scheduling


【解决方案1】:

希望这会有所帮助。

chmod 755 /appllib/int/exe/script5.sh

【讨论】:

  • 谢谢。是的,这是因为访问问题。
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2023-04-03
  • 2013-09-12
  • 1970-01-01
  • 2012-01-11
  • 2019-12-09
  • 1970-01-01
相关资源
最近更新 更多