I am creating a control panel for minecraft and need to find a way to send commands to a screen session. I can run a shell script from php’s system() command. But when I do:
screen -S minecraft -X stuff “stop”
and switch to my sceen session, it shows stop written but it is as if enter was not pressed after enterin the command
So, how do I simulate enter in shell?
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.