I'm using PHP 4.3.2 (cli). I'm writing a shell script.
I have need to run a shell command that takes stdin as it input (this works just fine) AND
take that output as the input to another command.
I run the first command with
$myoutput = shell_exec(command1);
I would like to feed $myoutput to the stdin of command2.
How do I do this?
Tim