On 9/27/23 10:48, Brian G wrote: > dup2(OldStderr,StdOut) > dup2(OldStderr,StdErr) Shouldn't that be: dup2(OldStdout,StdOut) dup2(OldStderr,StdErr) ? I ask just in case you copied it directly from your project's code. -- Lee