title: How to run python file inside tmux session?
body: <p>I am trying to run python script inside <code>tmux</code> session. I wrote a command (<code>tmux new-session -d -s my_session</code>) which is running fine from <code>crontab</code>. </p>
  
  <p>But when I am trying to run python or shell file with <code>tmux new-session -d -s my_session 'python3 test.py</code> or <code>tmux new-session -d -s my_session 'sh test.sh</code>
  The script doesn't run. I used the reference from <a href="https://stackoverflow.com/questions/31902929/how-to-write-a-shell-script-that-starts-tmux-session-and-then-runs-a-ruby-scrip">here</a>.
  Please help me with this.</p>