|
|
От: | nonentity | |
| Дата: | 02.11.07 09:58 | ||
| Оценка: | |||
import java.io.IOException;
public class SSHConnect {
public static void main(String[] args) {
String[] cmd = new String[] {"sh", "-c", "cat /ecas/pki_conf.xml"};
try {
Runtime.getRuntime().exec(cmd);
} catch (IOException e) {
System.out.println(e.toString());
}
}
}