DEV Community

Cover image for How to run shell scripts in Java
coder4life
coder4life

Posted on

How to run shell scripts in Java

Running shell scripts from inside Java code using ProcessBuilder in a thread. This solution works on Windows (.bat file) and Unix (.sh file) - running example in both environments in video.

Top comments (0)