Skip to content

Instantly share code, notes, and snippets.

@igorzi
Created November 8, 2011 21:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save igorzi/1349383 to your computer and use it in GitHub Desktop.
Save igorzi/1349383 to your computer and use it in GitHub Desktop.
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