Exec redirects error stream to input stream.