I need to capture in a custom stream outputs of a spawned child process.
child_process.spawn(command[, args][, options])
F
You can do it without using a temporary file:
var process = child_process.spawn(command[, args][, options]); process.stdout.on('data', function (chunk) { console.log(chunk); });