public class UnxiTest {
public static void main(String arge[]){
Process process;
try {
//process = RuntimegetRuntime()exec(C:\\bat); //在此调用bat文件
process = RuntimegetRuntime()exec(/opt/OV/b/in/opcmsg sev=critical app=OSSPI obj=error_log msg_text=test Msg node=BL); //调用服务后面是服务参数
BufferedReader read = new BufferedReader(new InputStreamReader(
processgetInputStream()));
String str = null;
while ((str = readreadLine()) != null) {
Systemoutprintln(str);
}
} catch (Exception e) {
// TODO Autogenerated catch block
eprintStackTrace();
}
Systemoutprintln(sucess);
}
}
//bat 文件 创建目录test
@echo a
MKDIR c:\test