code: private static String[] executeShellCommand(String[] command)
    throws IOException {
      String groups = Shell.execCommand(command);
      StringTokenizer tokenizer = new StringTokenizer(groups);
      int numOfTokens = tokenizer.countTokens();
      String[] tokens = new String[numOfTokens];
      for (int i=0; tokenizer.hasMoreTokens(); i++) {
        tokens[i] = tokenizer.nextToken();
      }
  
      return tokens;
    }
docs: /* Execute a command and return the result as an array of Strings