public static Process exec(String cmd, File dir, OutputStream out, OutputStream err) { return exec(new String[] {cmd}, dir, out, err); }
public static Process execCommandLineUtility(String cmd, OutputStream out, OutputStream err) { return execCommandLineUtility(new String[] {cmd}, out, err); }
public static Process altExec(String cmd) { return altExec(new String[] {cmd}); }
public static Process exec(String cmd, File dir, OutputStream out, OutputStream err) { return exec(new String[] {cmd}, dir, out, err); }
public static Process execCommandLineUtility(String cmd, OutputStream out, OutputStream err) { return execCommandLineUtility(new String[] {cmd}, out, err); }
Process proc = Runtime.getRuntime().exec(cmd, getEnv());
public static Process altExec(String cmd) { return altExec(new String[] {cmd}); }
public static Process exec(String[] cmd, OutputStream out) { return exec(cmd, null, out, null); }
public static Process execCommandLineUtility(String cmd) { return execCommandLineUtility(cmd, System.out, null); }
Process proc = Runtime.getRuntime().exec(cmd, getEnv());
public static Process exec(String[] cmd) { return exec(cmd, null, System.out, null); }
public static Process execCommandLineUtility(String cmd) { return execCommandLineUtility(cmd, System.out, null); }
public static Process exec(String cmd, File dir) { return exec(cmd, dir, System.out, null); }
public static Process execCommandLineUtility(String[] cmd) { return execCommandLineUtility(cmd, System.out, null); }
public static Process exec(String cmd, OutputStream out) { return exec(cmd, null, out, null); }
public static Process execCommandLineUtility(String[] cmd) { return execCommandLineUtility(cmd, System.out, null); }
public static Process exec(String[] cmd) { return exec(cmd, null, System.out, null); }
public static void execute(String... cmd) { String osName = System.getProperty("os.name"); if (!osName.startsWith("Windows")) { // needed for the Fedora shell scripts cmd[0] = cmd[0] + ".sh"; } if (sbOut != null && sbErr != null) { sbOut.reset(); sbErr.reset(); ExecUtility.execCommandLineUtility(cmd, sbOut, sbErr); } else { ExecUtility.execCommandLineUtility(cmd); } }