Within my java application, I have a log backup function:
rt = Runtime.getRuntime();
pr = rt.exec(command);
int exitVal = pr.waitFor();
if(exitVal == 0)
return true
The problem is it takes a while to backup the logs and to get a response, until then my application freezes. If I remove the pr.waitFor()
function call, I get a response, but the log backup fails to work.