Stuff a string in the input buffer of a window.
Literally a parameter of the SCREEN term program. To ensure I'm not sending this to the Command Console but the actual Minecraft console.
Loading class `com.mysql.jdbc.Driver'. This is deprecated. The new driver class is `com.mysql.cj.jdbc.Driver
Seems this may need an update...still connects but may not for much longer with newer version of openJDK
The ^M sends the ENTER KEY (so it types reload [ENTER] into the actual console..so it's like going into screen and typing that command. And & or && both work in this script (which is why I added the sleep command
back to the ^M (when you use the stuff option it doesn't send commands to the CMD...
To go a little farther I use a few things (SCREEN for example to leave the server headless but can attach to when needed. I also use SYSTEM.D Services as mentioned above...My change is that I additionally have the service options to reload (which sends the reload command to the server console)...