Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想打开一个进程
"Start /b".$cmd
并且仍然有能力检查它的状态(.ie running?)这可能吗?
当我尝试使用
proc_open ( "Start /b".$cmd , $descriptorspec , $pipes )
并检查
proc_get_status($process)['running']
尽管进程正在运行,但它返回 false ...
谢谢
创建的进程Start正在运行——Start它本身早就停止运行了。 因此,proc_get_status($process)['running']返回 false。
Start
是否有一个具体的原因你不能$cmd直接使用
$cmd
proc_open($cmd, $descriptorspec, $pipes);
?