php でプロセスを起動するときに、パイプを作ってそれぞれの実行する。 php で pipeを作る例 <?php $p1_file_descriptor = [['pipe','r'],['pipe','w'],['pipe','w']]; $p1 = proc_open(['ls','/etc'],$p1_file_descriptor,$p1_pipes); fclose($p1_pipes[0]); $p2_file_descriptor = [$p1_pipes[1],['pipe','w'],['pipe','w']]; $p2 = proc_open(['grep','su'],$…