結果 : how to wait for command completion in shell script