I am running a bash file through PuTTY. This is the contents of it:
#!/bin/bash
screen -X 'java -Xms2048m -Xmx2048m -jar mcpc.jar'
screen -x
When I run /backups/turnon.sh
, 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 screen -x
works fine), what's wrong?