title: How do I wait for a subprocess within tmux
body: <p>I run a subprocess with:</p>
  <pre class="lang-bash prettyprint-override"><code>tmux new-session -d command
  </code></pre>
  <p>How do I wait for it to complete, preferably with a timeout set?</p>