Code:
#include <boost/system/process.hpp>
int main() {
boost::process::system bp("echo foo; echo bar");
}
Output:
foo; echo bar
Desired output:
foo
bar
I am receiving a string containing 1:MANY commands to run separated by a semi-colon; as one may run in in a shell terminal. Is there a way to tell boost::process to interpret the string command as such?
Yes, I'd use an explicit bash:
Live On Coliru
Prints