做什么的时候
$output = shell_exec("command 2>&1");
收集命令的stdout&stderr in $output,有没有办法找到命令的退出状态?
$output
可以将命令输出写入临时文件,然后附加退出状态,但这相当笨重.有更好的建议吗?
php
php ×1