Created
March 31, 2015 10:47
-
-
Save pauliusnorkus/7cf61e5dfda1fc7224f0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "kibana", | |
"private": true, | |
"main": "startup.js", | |
"scripts": { | |
"start": "node startup.js" | |
}, | |
"dependencies": { | |
}, | |
"devDependencies": { | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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