On Sunday, October 27, 2013 6:03:35 PM UTC+11, Stefan Klein wrote: > > 2013/10/27 Stefan Klein <[email protected] <javascript:>> > >> >> 2013/10/27 Tim Cuthbertson <[email protected] <javascript:>> >> >>> >>> childProcess.spawn('bash', ['-c', 'echo STOUT; echo STDERR >&2; echo >>> DONE;'], {stdio: ['ignore', output, output]}); >>> >>> >> Don't you have to use "2>&1" to redirect STDERR to STDOUT? >> > > Sorry, haven't had coffee yet. > But still, why don't you just redirect STDERR to STDOUT when calling the > child process? >
That would absolutely solve my problem, but I haven't found a way to do that - is it possible? Please note that I'm calling arbitrary processes, so I can't rely on the child to do this redirection when it starts - it must be done my by the parent process before exec()ing them. Cheers, - Tim. -- -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You received this message because you are subscribed to the Google Groups "nodejs" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/nodejs?hl=en?hl=en --- You received this message because you are subscribed to the Google Groups "nodejs" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
