Skip to content

Instantly share code, notes, and snippets.

@harbhub
Created June 28, 2013 23:44
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 harbhub/5888957 to your computer and use it in GitHub Desktop.
Save harbhub/5888957 to your computer and use it in GitHub Desktop.
var exec = require('child_process').exec,
child;
child = exec('ls',
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