Skip to content

Instantly share code, notes, and snippets.

@AutomatedTester
Created February 9, 2011 12:21
Show Gist options
  • Select an option

  • Save AutomatedTester/818382 to your computer and use it in GitHub Desktop.

Select an option

Save AutomatedTester/818382 to your computer and use it in GitHub Desktop.
Starts Google Chrome
var util = require('util'),
exec = require('child_process').exec,
child;
child = exec('open "/Applications/Google Chrome.app/Contents/MacOS/Google Chrome"',
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