简体   繁体   English

完全不触发Crontab

[英]Crontab not triggered at all

I have the following CRON configuration: 我具有以下CRON配置:

crontab -l
* * * * * curl http://x.com/script.php

But it just doesn't work. 但这是行不通的。 The command "curl http://x.com/script.php " triggered manually works all fine so it's obviously something wrong with CRON. 手动触发的命令“ curl http://x.com/script.php ”工作正常,因此CRON显然有问题。 What could go wrong? 可能出什么问题了?

From the top of my head, 'curl' is not in the PATH, when cron is trying to execute it. 从我的头顶开始,当cron试图执行它时,“ curl”不在PATH中。 Type its absolute path, or use the PATH variable in the crontab. 输入其绝对路径,或在crontab中使用PATH变量。 If that doesn't help, I would check if /usr/sbin/cron is running. 如果那没有帮助,我将检查/ usr / sbin / cron是否正在运行。 If it is, also check permissions of /var/cron/tabs/ and its contents, and check the log file /var/log/cron for any suscpicious errors. 如果是这样,还请检查/ var / cron / tabs /的权限及其内容,并检查日志文件/ var / log / cron中是否有可疑错误。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM