Skip to content

Instantly share code, notes, and snippets.

@devfred
Created July 12, 2015 17:43
Show Gist options
  • Save devfred/d0cb937e2e7ca4bf7268 to your computer and use it in GitHub Desktop.
Save devfred/d0cb937e2e7ca4bf7268 to your computer and use it in GitHub Desktop.
Execute command using node
var exec = require('child_process').exec;
var child;
child = exec('msbuild', function (error, stdout, stderr) {
console.log('stdout: ' + stdout);
console.log('stderr: ' + stderr);
if (error !== null) {
console.log('exec error: ' + error);
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment