in reply to
Error trapping while capturing stdout
Here's the umpteenth time I'm redirecting to this 0 rep Node.
For me it has solved my STDERR & STDOUT issues for a couple of years now in a production environment on win32, solaris, and linux platforms. By running this in a module it allows me to error check all of my system level calls back in my main code no matter what I call for any given platform, as well as making passing information to my logs easier.
I never use system or backticks any more.