<%@ page contentType="text/html;charset=UTF-8" %>
<%@ page import="net.sz600.tool.SzConvert" %>
<%@ page import="net.sz600.control.*" %>
<%@ page import="java.io.IOException" %>
<%@ include file="/sessionInfo.jsp"%>
<%



String open = SzConvert.toZeroStr(request.getParameter("open"));
if(open.equals("1")){
	try {
		Runtime.getRuntime().exec("E:\\soarwell\\jre16\\bin\\startupTomcat.bat");
		//Runtime.getRuntime().exec("taskkill /f /im java.exe");
		System.out.println("启动监控");
	} catch (IOException e) {
		// TODO Auto-generated catch block
		e.printStackTrace();
	} 
}else if(open.equals("2")){
	try {
		Runtime.getRuntime().exec("E:\\soarwell\\jre16\\bin\\shutdownTomcat.bat");
		//Runtime.getRuntime().exec("taskkill /f /im java.exe");
		System.out.println("关闭监控");
	} catch (IOException e) {
		// TODO Auto-generated catch block
		e.printStackTrace();
	} 
	
}

%>

<script type="text/javascript">
window.onload=window.history.back(-1);
</script>
