title: Running a java command with a bash file
body: <p>I am running a bash file through PuTTY. This is the contents of it:</p>
  
  <pre><code>#!/bin/bash
  screen -X 'java -Xms2048m -Xmx2048m -jar mcpc.jar'
  screen -x
  </code></pre>
  
  <p>When I run <code>/backups/turnon.sh</code>, it successfully connects to the screen however the java command is never run. Running the java command through PuTTY works fine. The bash file doesn't break at any point (as <code>screen -x</code> works fine), what's wrong?</p>