title: Does command in shell script wait to complete execution of previous command?
body: <p>I want to make shell script to deploy .WAR on tomcat. since I need to build it everytime and building war takes bit time. I want to make whole procedure to be done using shell script. And as a newbie to linux I dont have much idea about it.</p>
  
  <p>command 1 (to build war- takes some time to build).</p>
  
  <p>command 2 (to depoy war to tomcat)</p>
  
  <p>Does command 2 wait for execution of command 1 to get complete or it executes before whole execution.</p>