You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
513 B
Java
25 lines
513 B
Java
package de.unibremen.informatik.commons.exec;
|
|
|
|
public class ExecUtils {
|
|
static {
|
|
}
|
|
|
|
public ExecUtils() {
|
|
super();
|
|
}
|
|
|
|
public static void run(String cmd) {
|
|
try {
|
|
Process process = Runtime.getRuntime().exec(cmd);
|
|
|
|
try {
|
|
process.waitFor();
|
|
} catch (java.lang.InterruptedException e) {
|
|
e.printStackTrace();
|
|
}
|
|
} catch (java.io.IOException e) {
|
|
e.printStackTrace();
|
|
}
|
|
}
|
|
}
|