Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // already tried exec, spawn
- process.execFile('java', [
- '-jar', 'CC-path', '-js', 'js-path', 'other-options'
- ],
- (error, stdout) => {
- if (error != null) {
- throw error // only errors showed in terminal
- }
- console.log(stdout.toString()) // stdout always empty
- }
- )
- // I have tested by manual running the command in terminal and got output:
- // "...many lines before"
- // 0 error(s), 10 warning(s), 74.2% typed
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement