Asynchronous shell commands with screen Asynchronous shell commands with screen shell shell

Asynchronous shell commands with screen


You can try running the game_server.sh in the background like this without using screen at all:

./game_server.sh &

or, you can try changing your build.xml like this:

<?xml version="1.0" ?><project default="restart_game_server" name="server">     <target name="restart_game_server">         <sshexec host="x.x.x.x" username="root" password="xxx" command="cd xxx; ./game_server.sh &" trust="true" />    </target></project>


Use screen -d -m to run the screen in detached mode.

See the man page for more details.