二进制文件的 cron 作业未执行

二进制文件的 cron 作业未执行

我有一个想要每分钟执行的二进制文件。我通过运行打开了 cron 配置文件,crontab -e并添加了以下行:

* * * * * tutchi -logpath /home/user/path/logs/myfile.log

这不起作用所以我尝试添加二进制文件的完整路径

* * * * * /home/user/path/bin/tutchi -logpath /home/user/path/logs/myfile.log

但仍然不起作用。我知道我运行的命令是正确的,因为如果我运行,/home/user/path/bin/tutchi -logpath /home/user/path/logs/myfile.log一切都会正常运行。我还知道 cron 任务正在运行,因为我创建了一个虚拟任务,它每分钟运行一次并将某些内容回显到日志文件中

我检查了日志文件,一切似乎都很好,除了我的邮件服务器未设置之外没有其他错误

Oct 24 23:36:51 hairbuddy-notify cron[25522]: (CRON) INFO (pidfile fd = 3)
Oct 24 23:36:51 hairbuddy-notify cron[25522]: (CRON) INFO (Skipping @reboot jobs -- not system startup)
Oct 24 23:37:01 hairbuddy-notify CRON[25527]: (rodzz) CMD (/home/rodzz/hairbuddy/bin/tutchi -logpath /home/rodzz/hairbuddy/logs/tutchi.log)
Oct 24 23:37:12 hairbuddy-notify CRON[25526]: (CRON) info (No MTA installed, discarding output)
Oct 24 23:38:01 hairbuddy-notify CRON[25542]: (rodzz) CMD (/home/rodzz/hairbuddy/bin/tutchi -logpath /home/rodzz/hairbuddy/logs/tutchi.log)
Oct 24 23:38:13 hairbuddy-notify CRON[25541]: (CRON) info (No MTA installed, discarding output)
Oct 24 23:39:01 hairbuddy-notify CRON[26497]: (rodzz) CMD (/home/rodzz/hairbuddy/bin/tutchi -logpath /home/rodzz/hairbuddy/logs/tutchi.log)
Oct 24 23:40:01 hairbuddy-notify CRON[26955]: (rodzz) CMD (/home/rodzz/hairbuddy/bin/tutchi -logpath /home/rodzz/hairbuddy/logs/tutchi.log)
Oct 24 23:41:01 hairbuddy-notify CRON[26970]: (rodzz) CMD (/home/rodzz/hairbuddy/bin/tutchi -logpath /home/rodzz/hairbuddy/logs/tutchi.log)
Oct 24 23:42:01 hairbuddy-notify CRON[26980]: (rodzz) CMD (/home/rodzz/hairbuddy/bin/tutchi -logpath /home/rodzz/hairbuddy/logs/tutchi.log)
Oct 24 23:43:01 hairbuddy-notify CRON[26991]: (rodzz) CMD (/home/rodzz/hairbuddy/bin/tutchi -logpath /home/rodzz/hairbuddy/logs/tutchi.log)

相关内容