consider the code for running an external process and receiving the output:
i want to be able to receive the stdout stream and not the stderr stream.
read_fp = popen(system_call,"r");
if (read_fp != NULL)
chars_read = fread(sys_result, sizeof(char), sizeof(my_var)-1, read_fp);
is this done by popen by default, or will i have to change the system_call or the external process?
i think i've just answered my question!!! maybe cat "2>/dev/null" on the end of system_call???
i would still like to know about popen though.