Posts: 184
Threads: 19
Joined: Sep 2006
Reputation:
0
Hi!
Let's say a server crashes. Then you could log into the FTP and double click on a .bat or .exe and it would restart the server. Anyway to do that? Or any other suggestions?
Thanks, Bonsai!
Posts: 5,178
Threads: 65
Joined: Mar 2005
Reputation:
22
I'm afraid you can't, FTP is for transfers only, there's no way of executing a file on the remote machine.
Best way to get this done is using a PHP script.
Posts: 184
Threads: 19
Joined: Sep 2006
Reputation:
0
Well.. I see - Found this one: *****www.sdclan.co.uk/rcon.php
Could you tell me what command is for restarting the server? I've allways bin wondering if there's a command like that at all?
Posts: 5,178
Threads: 65
Joined: Mar 2005
Reputation:
22
Well if the server crashed you won't be able to rcon it so you would need PHP exec access to execute the shortcut or batch file.
If you can rcon it you need an auto restart script and send the quit command. (there is a _restart command but it never worked....)
Posts: 184
Threads: 19
Joined: Sep 2006
Reputation:
0
Okay. Thanks for your answer.