MCPcopy Create free account
hub / github.com/FongMi/CatVodSpider / exec

Method exec

app/src/main/java/com/github/catvod/utils/Shell.java:5–12  ·  view source on GitHub ↗
(String command)

Source from the content-addressed store, hash-verified

3public class Shell {
4
5 public static void exec(String command) {
6 try {
7 int code = Runtime.getRuntime().exec(command).waitFor();
8 if (code != 0) throw new RuntimeException("Shell command failed with exit code " + code);
9 } catch (Exception e) {
10 e.printStackTrace();
11 }
12 }
13}

Callers 1

createMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected