【发布时间】:2013-04-29 16:01:47
【问题描述】:
我在服务器 www.domain.com 中使用 CENTOS 创建了一个 cron 作业:
*/10 * * * * http://www.anotherdomain.com/cron/task.php
但它的回归:
/bin/sh: http://www.anotherdomain.com/cron/task.php: No such file or directory
如何让它发挥作用?
【问题讨论】:
-
使用 curl 或 wget 调用远程页面
-
@Dagon 你应该把它放在答案中,因为它是正确的解决方案。