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.
Check out the Apache Commons Exec .
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 .
Runtime.getRuntime().exec(...), , .
Runtime.getRuntime().exec(...)
Source: https://habr.com/ru/post/1739658/More articles:How to define a static array without contant size in class constructor? (C ++) - c ++Is there a way to post Facebook status using the ContactsContent Provider? - androidHow to extend urls in C #? - httpWindows Forms Event Log - c #SFML SetFramerateLimit does not limit frame rate - c ++Can I filter a django model using a python list? - pythonProblems using the Google Maps API - javaConverting C # void * to Byte [] - pointersIs there a library for .NET that does brackets or expression reduction and optimization? - .netProblems with Date, readyStatement, JDBC and PostgreSQL - javaAll Articles