Advertisement
Guest User

Untitled

a guest
May 29th, 2016
46
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. // already tried exec, spawn
  2. process.execFile('java', [
  3. '-jar', 'CC-path', '-js', 'js-path', 'other-options'
  4. ],
  5. (error, stdout) => {
  6. if (error != null) {
  7. throw error // only errors showed in terminal
  8. }
  9. console.log(stdout.toString()) // stdout always empty
  10. }
  11. )
  12. // I have tested by manual running the command in terminal and got output:
  13. // "...many lines before"
  14. // 0 error(s), 10 warning(s), 74.2% typed
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement