timche / docker-csgo

Counter-Strike: Global Offensive (CS:GO) Dedicated Server with automated/manual updating and optional SourceMod and PugSetup/PracticeMode integrations
https://hub.docker.com/r/timche/csgo
MIT License
193 stars 27 forks source link

How to input csgo commands to server through the image #19

Closed michihupf closed 2 years ago

michihupf commented 2 years ago

Is there a way to input commands through the server console via the image? Just typing it in when attached is not working.

timche commented 2 years ago

Unfortunately you can't. What are you trying to do?

Attaching to the process directly is risky as you could accidentally shutdown the server if you are not exiting from the process correctly. My advice would be to use an RCON client instead like https://github.com/gorcon/rcon-cli if you want to execute commands on the server.

michihupf commented 2 years ago

Seems like a good point. I will use an RCON client. Thanks for the client suggestion.