forever listコマンドのログ
<% String cmd[] ={“sh”, “/public_html/neeetb.tokyo/myprogram/read_forever_log.sh”};//実行させるコマンド // ProcessBuilder pb = new ProcessBuilder(cmd); Process proc =pb.start(); proc.waitFor(); byte[] res = proc.getInputStream().readAllBytes(); result = new String(res); out.println(result); %>