【发布时间】:2016-12-17 07:05:20
【问题描述】:
我已经使用
设置了玉米作业exec('echo -e "`crontab -l`\n* * * * * http://example.com/cron/sendsms.php" | crontab -');
我已经看到了这个使用
$output = shell_exec('crontab -l');
echo '<Pre>';
echo $output;
//o/p * * * * * http://example.com/cron/sendsms.php
直到一切正常。
如果我运行这个 url(http://example.com/cron/sendsms.php)。然后它可以正常工作。
但是 cron 没有按照设定的时间执行。有什么问题?
【问题讨论】:
-
你有 shell 访问权限吗?
-
没有兄弟。我没有访问权限。
标签: php shell url cron crontab