title: chaining commands with ecs-exec
body: <p>We are using ecs-exec to connect containers running in AWS. I need to chain two commands so they can run one after another. These commands are</p>
  <ol>
  <li>rake db:migrate</li>
  <li>exec $SHELL</li>
  </ol>
  <p>I am doing the chaining like <code>rake db:migrate ; exec $SHELL</code> . The reason is we want to keep the shell open after running db:migrate. When I run this above chained command inside the container then it works as expected. But when I run it at the time of connecting to container using ecs-exec  then it shows below error</p>
  <blockquote>
  <p>Don't know how to build task ';' (See the list of available tasks with
  <code>rake --tasks</code>) /usr/local/bundle/gems/rake-13.0.3/exe/rake:27:in
  `&lt;top (required)&gt;' (See full trace by running task with --trace)</p>
  </blockquote>
  <p>Looks like it is taking ; exec $SHELL as an argument for rake db:migrate command. My only goal is to first run rake db:migrate and then keep the shell open. Any suggestion would be helpful. Thanks</p>