title: "Inject" commands into a running process
body: <p>I've made a Perl script to start a Java game server, <code>java -jar somejar.jar &gt; /dev/null 2&gt;&amp;1 &amp;</code></p>
  
  <p>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.</p>
  
  <p>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.</p>
  
  <p>Is this possible?</p>
  
  <p>Thanks!
   Justin</p>