You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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.
The text was updated successfully, but these errors were encountered:
You can use Amp\ByteStream\pipe to stream the contents of one stream to another stream. Doing this for both stdout and stderr will likely give you what you're asking for:
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 bothSTDOUT
andSTDERR
, preferably, intermingled output, i.e. not in separate variables. Is appending2>&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 toSTDOUT
directly instead of catching it in a variable?Any help will be appreciated.
The text was updated successfully, but these errors were encountered: