I didn't see it in the documentation, and I've been looking through example programs to find this out. How do I wait for a command to complete? For instance, I'm attempting to do an Export with the BaseX Java API. What I don't understand is how I can block execution until the command is finished... I looked quickly at Process and the Context class and did not find anything revealing.