Executing commands on a running server from the command line
When the server is running are there commands that you can execute to do stuff. Like see how many active players there currently are. Or broadcasting a server wide message.
|
you need telnet enabled in your config at the very least. i -think- there is something you have to set on individual accounts to allow for telnet access as well, but i can't remember and am not finding it easily.
you can probably do what you want to do via http as well, and that is disabled by default too. |
In the 'account' table, you need to enter an unhashed password for each account that you wish to have access.
Then just access it in a web browser using <ip_address>:9000 |
that was the other thing i couldn't remember.
|
you can enter a hashed password there FYI
oh and it is port 9080 for the web interface. |
sorry about that! yeah, I was off a bit..and I don't just mean the port
|
So say my server reboots every night. Is there a way to automate a system wide message that the server is coming down and people need to log off. I know I've seen this on other servers. I thought there might be commands one could execute from the command line console where the server is running, but maybe not.
Anyone know how to automate a system message before a automatic server reboot takes place? |
you can automate telnet and http connections via almost any programming language. you could use perl's Net::Telnet or Expect modules to write a small script that is scheduled to fire off prior to your reboot.
|
|
Perfect. Thanks for the link Uleat.
|
All times are GMT -4. The time now is 11:37 PM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.