Skip to content

Instantly share code, notes, and snippets.

View haruo31's full-sized avatar

Haruo Kinoshita haruo31

View GitHub Profile
@haruo31
haruo31 / ProcessBroker.java
Last active April 20, 2018 10:44 — forked from mapiondev/ProcessBroker.java
[java] 外部コマンド実行するクラス(スレッド安全版?)
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.Reader;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
/**
* ProcessBroker pb = new ProcessBroker("ps -ef | grep java".split(" "));