Youi've got some information here, but I can't get it to work. I need to call the system command on a Linux machine, and capture the output that would normally go to the terminal (cout) in a string (or stringstream).
prep string to receive what would normally go to cout
call system("ls -al" );
return cout to normal operation (sent to terminal)