我是Linux新手。 我把一个文件放在cron.daily中进行testing,但是它从来没有得到执行,访问mod是755的testing文件。
crontab文件的默认条目为: – * / 15 * * * * root test -x / usr / lib / cron / run-crons && / usr / lib / cron / run-crons> / dev / null 2>&1
cron守护进程在那里。 我可以开始一个“在”工作。
我错过了什么?
你的脚本有.sh后缀不是吗? ;)
运行部分不会运行任何后缀 。 带有后缀的文件将被忽略。
这是一个logging,但完全愚蠢的“function”:
If neither the --lsbsysinit option nor the --regex option is given then the names must consist entirely of upper and lower case letters, dig‐ its, underscores, and hyphens.