in reply to Redirecting STDERR to STDOUT securely

Have you looked into IPC::Open2?

IPC::Open3 sets up a read, a write, and an error handle. IPC::Open2 sets up a read and a write handle. The read handle returned from IPC::Open2 represents both the stdout and stderr of the child process.

  • Comment on Re: Redirecting STDERR to STDOUT securely