popen does not allow to independently handle standard error
To handle standard error differently with popen one needs to redirect standard to a pipe or a temporary file instead:
To handle standard error differently with popen one needs to redirect standard to a pipe or a temporary file instead: