PHP
·
发表于 5年以前
·
阅读量:8279
ExeCommand cmd = new ExeCommand(false).run("your cmd", 60000);
while(cmd.isRunning())
{
try {
sleep(1000);
} catch (Exception e) {
}
String buf = cmd.getResult();
//do something
}