mac 系统执行PHP定时任务失败
定时任务是这样的,
*/1 * * * * /usr/bin/php /Users/test/Desktop/php_code/test/sign.php >>/tmp/sign_$(date +\%Y\%m\%d).log
定时任务日志信息:
Could not open input file: /Users/test/Desktop/php_code/test/sign.php
但是直接执行, 以下命令是没问题的。
/usr/bin/php /Users/test/Desktop/php_code/test/sign.php
有知道的大神吗?求知道 谢谢
推荐文章: