Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Process.consumeProcessOutput() rewrite in core Java  RSS feed

Benson Fung
Ranch Hand
Posts: 220
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I need to transform a groovy program in a core java program. However, there is a line in the groovy program as below:

process.consumeProcessOutput() //where process object was created in the above of the groovy script command execution.

Now I need to transform consumeProcessOutput() into core java of Process class. Can anyone suggest couple lines of code to replace consuleProcessOutput()?

thanks for help
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!