Created
September 14, 2014 15:00
-
-
Save lucacesari/542615a4a241ac630544 to your computer and use it in GitHub Desktop.
Call external process in Java7
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ProcessBuilder builder = new ProcessBuilder(); | |
builder.command("command1"); | |
builder.inheritIO(); // if you need to see the sysout and syserr | |
Process p = builder.start(); | |
p.waitFor() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment