관리 메뉴

목록jsp (5)

올해는 머신러닝이다.

jsp에서 톰켓로그 보여주기(실시간 아님)

<% InputStream is = null; InputStreamReader isr = null; BufferedReader ibr = null; try { String logFile = "/app/apache-tomcat/logs/catalina.out"; String tailCommand = "tail -f " + logFile; Runtime runtime = Runtime.getRuntime(); Process process = runtime.exec(tailCommand); is = process.getInputS..

jsp 2012.11.27 14:21