title: Run cmd in background in shell script
body: <p>How do i run a cmd in background and return to next line in shell script 
  test.sh -></p>
  
  <pre><code>bash --rcfile &lt;(echo '. ~/.bashrc; ./cloud_sql_proxy -instances=connectionstring &amp;&amp; exit')
  mysql -u root -p --host 127.0.0.1
  </code></pre>
  
  <p>The first cmd gives the output as </p>
  
  <pre><code>2018/01/05 01:49:28 Listening on 127.0.0.1:3306 for connectionstring
  2018/01/05 01:49:28 Ready for new connections
  </code></pre>
  
  <p>so 2 cmd is never executed. </p>
  
  <p>Basically I want to run 1 cmd in background, so that 2 cmd is executed.</p>