I have a Minecraft server attached to a Screen in my linux server. I use Python to push data to the Minecraft server via Screen Stuff. I have noticed that if I put too many characters in screen stuff, it tends to not push the data into the screen.
For example, the following works just fine. It pushes the text to the Minecraft screen:
screen -r Minecraft -p0 -X stuff 'Some random text etc etc, contents are not relevant ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------^M'
Adding 100 or so more characters causes the contents to not be sent and no error messages are produced that I can tell:
screen -r Minecraft -p0 -X stuff 'Some random text etc etc, contents are not relevant-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------^M'
This seems to suggest there is a character limit within screen's stuff command. Assuming so, is there an alternative for this that would allow for more characters? I occasionally have extremely long commands to push to the screen that go above the 700-800ish character limit I am observing. Perhaps putting the text into a file and passing that along for the screen to run somehow?
screen.