我想在写入其他命名管道时将命名管道(FIFO)的内容重定向到stdout。
服务器端PHP脚本中的以下场景:
//Write some Text to STDOUT by PHP
echo "Pre Text";
//Redirect the Content to stdout ...
$handle = NON_BLOCKING_REDIRECT('/run/pipeXYZ',STDOUT);
//..while writing to an other name pipe
file_put_contents('/run/otherPipe','MyCommand');
WAIT_UNTIL_FINISHED($handle);
//Write again some Text to STDOUT by PHP
echo "Post Text";
这可能吗? NON_BLOCKING_REDIRECT, WAIT_UNTIL_FINISHED
的内容是什么?