What is a way in C++ to run a Linux shell command (basically equivalent to typing it in the standard shell environment) and get the output?
I know with system() I can run a command, but there is no way to get the output unless I specificly pipe it to a file then read that file. I'm looking for a way to do it on the fly.
I know with system() I can run a command, but there is no way to get the output unless I specificly pipe it to a file then read that file. I'm looking for a way to do it on the fly.
