Running a child process in C++
Try to follow ruby pattern.
You want to capture stdout as a string (and inherit stderr):
from How to execute a command and get the output of command within C++ using popen:
NOTE: stderr not inherited with code below.
Written on September 9, 2020, Last update on September 9, 2020
c++
shell
process