I have a screen running a server. That screen is run with:
screen -m -d -S server (cmd to start server)
Then I want to send a command to the server by doing this:
screen -S minecraft -X stuff (cmd)
That sends the command to the server but doesn't execute it. (Like if you typed ls in the terminal without pressing enter).
So how can I excecute the command/simulate an enter press?