How can I get a game to attach to a screen so that i can get the rcon via ssh or is there a php script out there that can help?
Thanks
Ant
How can I get a game to attach to a screen so that i can get the rcon via ssh or is there a php script out there that can help?
Thanks
Ant
Different games have different methods of accessing RCON (and some don't have it at all.) Which game(s) are you interested in primarily ?
Half Life 1 & 2 + Mods
Thanks
Ant
Those have RCON access built in to the game, you can connect from the in-game console. Were you wanting a purely browser based solution ? I'm not sure of a web based app off the top of my head but I'm sure there are some out there. One of the long term goals for cPGS is RCON command support for the various games, but it's still got a lot to get done before then. (read: it's probably worth your time to look into an alternate rcon solution for now)
I was not talking about a web-based program. I meant the screen command in ssh.
Change the start up command to start it with a screen instead of sending it straight into the background.
The screen session can be named /home/user/hl2_0... and so on.
Let me know if you can do this.
You might already know this, but just in case..
Screen is a very risky solution to making detachable/session-less applications launch.
If you are not the only one with ssh access some one else can try to hijack the screen session....
what's the reason you want to use screen instead of letting it push to the background, if you don't mind me asking?
Cheers.
I did not know that. But nice point. I never thought of it like that.
I was thinking of using ssh for the rcon also and looking at the screen session to find out errors instead of looking in the logfile that dometimes does not log all the information.
It stops logging when it wants to.
Thanks
Ant
It's possible I could make it an option, an allowable feature in WHM that the user could then enable if permitted. It won't be at the top of the list, but perhaps I can squeeze it in on a slow(er) day
Eventually I want to have in-browser rcon control, but that is one of the final large features for the entire project and is still far off.
Thank you darren.