Waiting For Progress App From Java

Boomn4x4

New Member
I've got a java application that I'm using to execute a Progress application via "mbpro database -p program.p" I'm then doing a Process.waitFor() in java to wait for that process to terminate before continuing. The process terminates immediatly. With that said, I'm not really a progress developer, but my assumption here is that "mbpro" is the process I'm kicking off, which then starts a new process, the "program.p" application and terminates immediatly w/o waiting for program.p to complete. If that is the case, is there a way to get mbpro to wait for program.p to quit before shutting down itself.

Thank you.
 

TheMadDBA

Active Member
Mbpro is a batch file or shell script depending on your os. You will need to extract the line for the actual executable from the script.
 
Top