@Test public void execCommand() throws Exception { String testString = "alluxio"; String result = ShellUtils.execCommand("bash", "-c", "echo " + testString); assertEquals(testString + "\n", result); }
public static String execCommand(String... cmd) throws IOException { return new ShellCommand(cmd).run(); }
ShellUtils { public static String execCommand(String... cmd) throws IOException { return new ShellCommand(cmd).run(); } }
ShellUtils { public static String execCommand(String... cmd) throws IOException { return new ShellCommand(cmd).run(); } private  ShellUtils(); }
ShellUtils { public static String execCommand(String... cmd) throws IOException { return new ShellCommand(cmd).run(); } private  ShellUtils(); static String[] getGroupsForUserCommand(final String user); static String[] getSetPermissionCommand(String perm, String filePath); static List<UnixMountInfo> getUnixMountInfo(); static UnixMountInfo parseMountInfo(String line); static boolean isMountingPoint(String path, String[] fsTypes); static boolean isAlluxioRunning(String className); static String execCommand(String... cmd); static CommandReturn execCommandWithOutput(String... cmd); static CommandReturn sshExecCommandWithOutput(String hostname, String... cmd); static CommandReturn scpCommandWithOutput(
          String hostname, String fromFile, String toFile, boolean isDir); static CommandReturn execCmdWithBackup(ShellCommand cmd, ShellCommand backupCmd); }
ShellUtils { public static String execCommand(String... cmd) throws IOException { return new ShellCommand(cmd).run(); } private  ShellUtils(); static String[] getGroupsForUserCommand(final String user); static String[] getSetPermissionCommand(String perm, String filePath); static List<UnixMountInfo> getUnixMountInfo(); static UnixMountInfo parseMountInfo(String line); static boolean isMountingPoint(String path, String[] fsTypes); static boolean isAlluxioRunning(String className); static String execCommand(String... cmd); static CommandReturn execCommandWithOutput(String... cmd); static CommandReturn sshExecCommandWithOutput(String hostname, String... cmd); static CommandReturn scpCommandWithOutput(
          String hostname, String fromFile, String toFile, boolean isDir); static CommandReturn execCmdWithBackup(ShellCommand cmd, ShellCommand backupCmd); static final String COMMON_SSH_OPTS; static final String SET_PERMISSION_COMMAND; static final String MOUNT_COMMAND; static final String TOKEN_SEPARATOR_REGEX; }