public void waitForComplete(){
  try {
    shellThread.join();
  }
 catch (  InterruptedException e) {
    LOGGER.error(e.toString(),e);
  }
}

public void waitForComplete ( ) { try { shellThread . join ( ) ; } catch ( InterruptedException e ) { LOGGER . error ( e . toString ( ) , e ) ; } }
wait the shell command to complete by typing " quit " or " exit "
