public static List < String > constructCommandAsList_Unix_sh ( String command ) { List < String > commandAsList = new ArrayList < String > ( ) ; commandAsList . add ( "sh" ) ; commandAsList . add ( "-c" ) ; commandAsList . add ( command ) ; return commandAsList ; }
Helper method to construct a UNIX - like - OS - compatible command that is using the SH shell syntax .