-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathrunscript.jsp
More file actions
31 lines (31 loc) · 745 Bytes
/
runscript.jsp
File metadata and controls
31 lines (31 loc) · 745 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<html>
<body>
<%@page import="java.io.*"%>
<%
Runtime r=Runtime.getRuntime();
Process p=null;
String s=null;
String cmd="/opt/bmc/BRLM/server/webapps/ROOT/automation/remediate.sh";
try{
p=r.exec(cmd);
InputStreamReader isr=new InputStreamReader(p.getInputStream());
BufferedReader br=new BufferedReader(isr);
String line=null;
while((line = br.readLine()) != null){
out.println(line);
}
p.waitFor();
}
catch(Exception e){
out.println(e);
}
%>
<h1 align="center">Compliance drifts are remediated<p>
<img src="done.jpg" align="middle">
<p>
<h1 align="center">You can now resolve your request</h1>
<p>
<p align="center">
<a href="javascript:window.open('','_self').close()"><img src="button.close_window.gif" align="middle"></a></p>
</body>
</html>