github / src / com / mizo0203 / twitter / timeline / talker / RuntimeUtil.java @ ff95c53a
1 |
package com.mizo0203.twitter.timeline.talker; |
---|---|
2 |
|
3 |
import java.io.IOException; |
4 |
|
5 |
public class RuntimeUtil { |
6 |
|
7 |
public static void execute(String[] cmdarray) { |
8 |
try { |
9 |
Process process = Runtime.getRuntime().exec(cmdarray); |
10 |
process.waitFor(); |
11 |
process.destroy(); |
12 |
} catch (IOException | InterruptedException e) { |
13 |
e.printStackTrace(); |
14 |
}
|
15 |
}
|
16 |
|
17 |
}
|