how do I store stdout value from system(); into a char* variable ?
I have child process that executes system(); function , but the output is displayed on server (parent) tty,
I would like to store the output of system("ls -la");
into a char* variable for later use / display .
is this possible ?