I've made a Perl script to start a Java game server, java -jar somejar.jar > /dev/null 2>&1 &
It starts and runs normally, but I would like to be able to 'inject' commands into the running server console (to stop restart etc) because it is dangerous to stop by terminating it via killall or ^C.
When run normally the server displays a log of user activities and an area to type commands in, that is where I would like to 'inject' the text.
Is this possible?
Thanks! Justin