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.

Revisions

  1. devfred created this gist Jul 12, 2015.
    9 changes: 9 additions & 0 deletions node-exec.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,9 @@
    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);
    }
    });