There are many ways to execute shell commands and print results in java I guess, the famous and the most used way is Runtime.getRuntime().exec you can find a good explanation for that from here. Coming to the point i am using the same way but little different! I use BufferedReader,InputStreamReader for simplicity and I can't make it much advanced. On the main event I have created a String where you put your command with the second event it executes the command and prints the result before I start I would like to give some credits to luismcosta.
Home » Posts filed under host runtime
How To Execute Shell Commands and Print Results in Java
in
bash script -eq,
bash script -ne,
best way to learn java,
execute shell commands,
execute shell commands java,
get runtime,
host runtime,
java,
java learning,
oracle sql plsql,
print results,
tutorial
- By
Mohamed Shimran
- on 9/09/2013
- No comments