プロジェクト

全般

プロフィール

ダウンロード (368 Bytes) 統計
| ブランチ: | タグ: | リビジョン:

github / src / com / mizo0203 / twitter / timeline / talker / RuntimeUtil.java @ df4ee0a0

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
}
(2-2/5)