在JAVA与JSP中要调用一个LINUX上的脚本程序,或WINDOWS上的脚本程序

System.getRuntime().exec("bash < aaa.sh");

或者Runtime.getRuntime().exec("gedit "+aaa.sh);

posted @ 2011-09-20 10:40  shenguanhao  阅读(179)  评论(0编辑  收藏  举报