Today we are going to show you how to start a script and read its output in a Java program. We are going to run a windows batch file in our example but you can run a script from Linux or any UNIX system with this code as well. You can use this code any way you want. For more great tutorials and sample codes please visit us at itcuties.com.
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
scripts
src/main/java/com/itcuties/java
README.md
pom.xml

README.md

Java-Run-Script

Today we are going to show you how to start a script and read its output in a Java program. We are going to run a windows batch file in our example but you can run a script from Linux or any UNIX system with this code as well. You can use this code any way you want. For more great tutorials and sample codes please visit us at itcuties.com.