I'm not sure if y'all take support requests directly through the issue queue, so I'll try my luck. I created the tool Drall and one of it's main features is parallel processing, which is powered by amphp/process.
Reference: context.
Question 1: Catch STDERR
$sOutput = yield ByteStream\buffer($process->getStdout());
Here, I only get the STDOUT contents from $process. How do I get both STDOUT and STDERR, preferably, intermingled output, i.e. not in separate variables. Is appending 2>&1 the only way? Or is there another way?
Question 2: No buffer
Currently, I use ByteStream\buffer($process->getStdout()); where I catch the output in a variable. Is there a way to let the output go to STDOUT directly instead of catching it in a variable?
Any help will be appreciated.
I'm not sure if y'all take support requests directly through the issue queue, so I'll try my luck. I created the tool Drall and one of it's main features is parallel processing, which is powered by
amphp/process.Reference: context.
Question 1: Catch STDERR
Here, I only get the STDOUT contents from
$process. How do I get bothSTDOUTandSTDERR, preferably, intermingled output, i.e. not in separate variables. Is appending2>&1the only way? Or is there another way?Question 2: No buffer
Currently, I use
ByteStream\buffer($process->getStdout());where I catch the output in a variable. Is there a way to let the output go toSTDOUTdirectly instead of catching it in a variable?Any help will be appreciated.