EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Support::Linux Servers (https://www.eqemulator.org/forums/forumdisplay.php?f=588)
-   -   Executing commands on a running server from the command line (https://www.eqemulator.org/forums/showthread.php?t=36082)

revloc02c 12-05-2012 07:08 PM

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.

c0ncrete 12-05-2012 08:27 PM

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.

Uleat 12-05-2012 08:43 PM

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

c0ncrete 12-05-2012 08:51 PM

that was the other thing i couldn't remember.

sorvani 12-05-2012 10:21 PM

you can enter a hashed password there FYI
oh and it is port 9080 for the web interface.

Uleat 12-05-2012 10:38 PM

sorry about that! yeah, I was off a bit..and I don't just mean the port

revloc02c 12-07-2012 12:49 AM

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?

c0ncrete 12-07-2012 12:59 AM

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.

Uleat 12-07-2012 07:42 PM

Check out this thread:

http://www.eqemulator.org/forums/sho...hutdown+script

revloc02c 12-08-2012 01:58 PM

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.