public static String run ( String cmd , String ... args ) { ProcBuilder builder = new ProcBuilder ( cmd ) . withArgs ( args ) ; return builder . run ( ) . getOutputString ( ) ; }
Static helper to run a process