title: How to get the result of send-keys in tmux?
body: <p>I am using tmux to run a server console. To check whether the console is answering, I would like to use <code>send-keys</code> to run a command on the console:</p>
  
  <pre><code>tmux send-keys -t mysess:mywin "show info" Enter
  </code></pre>
  
  <p>(Actually, I’m currently logging the full console output to a file and reading the last line, but I hope that a better solution exists.)</p>
  
  <pre><code>tmux pipe-pane -o -t mysess:mywin 'cat &gt;&gt; mysess-mywin.log'
  </code></pre>