Is there an API for calling system scripts / programs?

Is there something like an API built on top of a standard ProcessBuilder to call system programs? I will not argue that scripts can be ported to Java, but utilities such as arping and netstat are well suited for Linux.

+3
source share
3 answers

Check out the Apache Commons Exec .

+3
source

Why not just use the standard ProcessBuilder class ... It does a great job of scripting. Here is a post showing how this can be used to invoke a command through bash .

+3

Runtime.getRuntime().exec(...), , .

+2
source

Source: https://habr.com/ru/post/1739658/


All Articles