爱编程
首页
登录
java 执行linux命令
2015-2-5 Jessie
String[] cmd = { "sh", "-c", command };
process=Runtime.getRuntime().exec(cmd);