Skip to content

Instantly share code, notes, and snippets.

@igorzi igorzi/gist:1349383
Created Nov 8, 2011

Embed
What would you like to do?
var spawn = require('child_process').spawn;
console.error('process.stdout._handle is: ' + process.stdout._handle);
var child = spawn('node.exe', ['-e', 'console.log("foo")']);
child.stdout.pipe(process.stdout);
child.on('exit', function(code) {
console.error('child exited');
console.error('process.stdout._handle is: ' + process.stdout._handle);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.