title: tmux - attach to a session and specify window
body: <p>I have a script (.sh) and I want it to run in a existing tmux session. I have 1 session with 8 windows in.</p>
  
  <p>Is there a command like <code>tmux a -t session-name</code>, which also specify the window?</p>
  
  <p>And would a script like this work? </p>
  
  <p><code>#!/bin/bash
  tmux a -t session-name #What ever to write to specify window# java -jar -Xmx4G -Xms4G Spigot.jar</code></p>