wait for shell command to complete,p.wait()