Posted on 2007-02-14 10:34:16-08 by rgiersig in response to 3876
Re: capture log stderr in addition to stdout from a subprocess
strange... the pty is set up to get both stdout and stderr from the spawned command, so the logging should write both to the logfile. you can of course spawn the command with "2>&1" attached, but i don't think thats the error. maybe the spawned application opens /dev/tty? this should also point to the pty but doesn't reliably do so on all systems...
Direct Responses: Write a response
Perl Weekly newsletter
A free weekly newsletter for people who are busy to read all the blogs. click here to check it out.