If I use phpseclib to continue a screen it does not work the way I want to.
If I use:
<?php
include('Net/SSH2.php');
$ssh = new Net_SSH2('XXX.XXX.XXX.XXX');
if (!$ssh->login('loginname', 'password')) {
exit('Login Failed');
}
echo $ssh->write("screen -R minecraft\n");
echo $ssh->exec("cd /home/ftpmc/mc/; java -Xmx4096M -Xms4096M -jar craftbukkit.jar nogui");
?>
It then comes up with 1 and then starts up the minecraft server but not in the screen. Is there an alternative that is known to work well with phpseclib or is there something i'm doing wrong here?