For*_*imo 6 php terminal exec shell-exec
我有一个php文件'run.php',我正在终端上运行.在这个文件中,我有以下几行:
exec("open-crawlers $ port 2>&1",$ out,$ code); echo'hello';
我遇到的问题是终端在执行'exec'命令后挂起; 该计划没有到达第二行.
Boo*_*eus 14
试试这个:
exec("nohup open-crawlers $port >> /tmp/log_file.log 2>&1 &");
echo 'hello';
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
4469 次 |
| 最近记录: |