Created
September 17, 2011 06:00
-
-
Save isaacs/1223672 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var ch = require("child_process") | |
, cp = ch.spawn("node", ["-v"]) | |
cp.on("exit", function (code) { | |
console.error("exit", code) | |
}) | |
cp.stdout.pipe(process.stdout) | |
cp.stderr.pipe(process.stderr) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment