Skip to content

Instantly share code, notes, and snippets.

@runcom
Created March 12, 2013 11:52
Show Gist options
  • Save runcom/5142321 to your computer and use it in GitHub Desktop.
Save runcom/5142321 to your computer and use it in GitHub Desktop.
childp
var spawn = require('child_process').spawn;
// Spawn the child with a "ls -la" command
var child = spawn('google-chrome');
// When child exits:
child.on('exit', function(code) {
console.log('child process terminated with code ' + code);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment