Skip to content

Instantly share code, notes, and snippets.

@pauliusnorkus
Created March 31, 2015 10:47
Show Gist options
  • Save pauliusnorkus/7cf61e5dfda1fc7224f0 to your computer and use it in GitHub Desktop.
Save pauliusnorkus/7cf61e5dfda1fc7224f0 to your computer and use it in GitHub Desktop.
{
"name": "kibana",
"private": true,
"main": "startup.js",
"scripts": {
"start": "node startup.js"
},
"dependencies": {
},
"devDependencies": {
}
}
console.log("Starging Kibana.bat file...");
var spawn = require('child_process').spawn,
ls = spawn('cmd.exe', ['/c', 'bin\\kibana.bat']);
ls.stdout.on('data', function (data) {
console.log('stdout: ' + data);
});
ls.stderr.on('data', function (data) {
console.log('stderr: ' + data);
});
ls.on('exit', function (code) {
console.log('child process exited with code ' + code);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment