SRCDS Steam group


Input to screen
#1
Hey all,

Want to write a shell script that gets called by a PHP script to manage a server or two.

I was wondering if it is possible to have a shell script input commands INTO a screen session - just as if I were doing screen -r and typing in commands. I want the script to put in commands, like change map.

If someone could give me a quick explanation on how this might be achieved, I'll be very grateful.
Reply
#2
I use Mani's Admin plugin for that kind of thing, is there a specific reason you need to call it from PHP?
Reply
#3
c4onastick Wrote:I use Mani's Admin plugin for that kind of thing, is there a specific reason you need to call it from PHP?

To restart the server if it crashes. To change settings without launching the game. etc etc
Reply
#4
I've no idea on Linux stuff but there's a program called HLSW that has RCon to servers.
You can pretty much do everything with it you need. out of the game!
Join the Source Dedicated Server Support Group on Steam Community!
Source Dedicated Server (SRCDS)
Free to join, Live support! (When available)

http://forums.srcds.com/viewtopic/5114
Reply
#5
Drocona Wrote:I've no idea on Linux stuff but there's a program called HLSW that has RCon to servers.
You can pretty much do everything with it you need. out of the game!

Hey, nice! Heard about it but never bothered to find out what HLSW actually is.

Took me a few minutes to figure out how to work it, as when I enabled RCON view, it appears all the way at the bottom and seems as if it doesn't exist - but I found it at last.

Is it able to pick up a crashed server? That is what I need to do the Screen thing for, also for when I can't install it like at college. Which is for when I would need HTTP access.
Reply
#6
furiousV Wrote:To restart the server if it crashes. To change settings without launching the game. etc etc
Ah, I see. I was shocked for a minute there, because "crash" and "linux" are never seen in the same sentence. I SSH into my server for that kind of thing. From there you could leave a screen open to do whatever, or use the script posted here. Then you don't have to leave screen open, since (besides stopping, starting, and restarting) there's really not much else you can do from the terminal on the server once srcds is running.
Reply
#7
I used webmin / usermin to do this. I have a usermin account for the person in charge of the server, and they can start, stop, and restart the server all from a webpage, at the click of one button, WITHOUT giving them SSH access.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)