V
vj
I need to capture the error code put out by an executable which I run
from my program using
rc = system(command);
I get the stdout into rc. But how do I get to stderr ?
( command does cerr << errorcode; as part of its execution)
Can this be done without creating a file ?
Thanks in advance for your help.
from my program using
rc = system(command);
I get the stdout into rc. But how do I get to stderr ?
( command does cerr << errorcode; as part of its execution)
Can this be done without creating a file ?
Thanks in advance for your help.