nata-monkey/src/main/java/com/nata/utils/ShellUtil.java
/**
     * Execute a shell command
     * @param command command to execute
     * @return process executed
     */
Execute a shell command
@param command command to execute
@return process executed
Execute a shell command @param command command to execute @return process executed
private static Process process(String command) {
        Process process = null;
        try {
            process = Runtime.getRuntime().exec(command);
        } catch (IOException e) {
            e.printStackTrace();
        }
        return process;
    }
private static Process process ( String command ) { Process process = null ; try { process = Runtime . getRuntime ( ) . exec ( command ) ; } catch ( IOException e ) { e . printStackTrace ( ) ; } return process ; }
Execute a shell command
 @param command command to execute
 @return process executed
Execute a shell command @param command command to execute @return process executed