How to run command line binaries in Java and get their output as String | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3

How to run command line binaries in Java and get their output as String

For example: String command_output = get_cmd_string("cat test.txt"); Now the get_cmd_string function will return a String object of the output from the command "cat test.txt"

5th Sep 2020, 7:20 AM
Terminal_Phantom
Terminal_Phantom - avatar
1 Answer
0
I think your question is very logical
7th Sep 2020, 3:54 AM
Bobby Bunagan
Bobby Bunagan - avatar