(String command)
| 44 | } |
| 45 | |
| 46 | public Process exec(String command) throws IOException { |
| 47 | StringTokenizer t = new StringTokenizer(command); |
| 48 | String[] cmd = new String[t.countTokens()]; |
| 49 | for (int i = 0; i < cmd.length; i++) |
| 50 | cmd[i] = t.nextToken(); |
| 51 | |
| 52 | return exec(cmd); |
| 53 | } |
| 54 | |
| 55 | public Process exec(final String[] command) throws IOException { |
| 56 | final MyProcess[] process = new MyProcess[1]; |