Is there anyway to make sure that your program doesn't continue on until it has finished doing what ever you have set for it to do in the shell?