07.12.2011, 22:36
Well, tried with ssh2 like this:
$connection = ssh2_connect("localhost", 22);
ssh2_auth_password($connection, "root", "123456");
ssh2_exec($connection, "cd /home/samp03 && ./samp03svr");
It doesn't start... If i put exactly that command "cd /home/samp03 && ./samp03svr" on Putty it works fine.
Help please, im using CentOS 5.7.
$connection = ssh2_connect("localhost", 22);
ssh2_auth_password($connection, "root", "123456");
ssh2_exec($connection, "cd /home/samp03 && ./samp03svr");
It doesn't start... If i put exactly that command "cd /home/samp03 && ./samp03svr" on Putty it works fine.
Help please, im using CentOS 5.7.