在tomcat5.0下,调用servlet,其中执行以下语句:String name="ls -lrt > out.log";
File fdir=new File("/root/");
Process pro=Runtime.getRuntime().exec(name,null,fdir);
请问:out.log文件会输出到哪里?
File fdir=new File("/root/");
Process pro=Runtime.getRuntime().exec(name,null,fdir);
请问:out.log文件会输出到哪里?
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货