Skip to content

Instantly share code, notes, and snippets.

@allenyang79
Created September 4, 2013 06:43
Show Gist options
  • Save allenyang79/6433457 to your computer and use it in GitHub Desktop.
Save allenyang79/6433457 to your computer and use it in GitHub Desktop.
node js child_process test
var child= require('child_process');
child.exec('ls -lh /usr', function(err, stdout, stderr) {
child.exec('ls -lh /usr', function(err, stdout, stderr) {
console.log(stdout);
});
console.log(stdout);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment