【问题标题】:The following crontab does not run, but it can be run in the terminal下面的crontab不运行,但是可以在终端运行
【发布时间】:2021-04-12 22:26:51
【问题描述】:

crontab中的以下脚本不执行,但可以在终端执行 命令:* * * * * /usr/bin/php 工匠编辑 > /dev/null 2>&1 错误:[Errno 2] 没有这样的文件或目录:'ffprobe\

【问题讨论】:

    标签: python macos cron


    【解决方案1】:

    我认为这不是 crontab 问题,它显示 'ffprobe' 为 No such file or directory。

    如果您使用“ffprobe”目录,请在您的 PHP 代码中尝试将其作为绝对路径而不是相对路径。我的意思是完整的路径,而不是部分路径。例如说 /home/myuser/phpcodes/ffprobe/ 而不仅仅是 ffprobe。

    如果这有帮助,请尝试告诉我。

    【讨论】:

      猜你喜欢
      • 2021-09-12
      • 1970-01-01
      • 2021-03-11
      • 2016-11-19
      • 2017-01-24
      • 2021-10-06
      • 2020-09-09
      • 1970-01-01
      • 2021-02-17
      相关资源
      最近更新 更多