【发布时间】:2018-01-31 06:11:34
【问题描述】:
我有一个运行 bash 文件的 cron:
#!/bin/bash
for n in {1..10}; do
/usr/bin/php /var/www/html/teste_sh.php v=$n &
done
但是在这个脚本 teste_sh.php 中,如果我做一个 error_log,它就不起作用了。
这个文件夹的Error_log 是空的,但是如果我运行http://localhost/teste_sh.php,error_log 工作正常!
有没有办法让 error_log 在这种情况下工作?
谢谢。
【问题讨论】:
标签: php linux bash cron centos