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