Send input to background process

view story

http://serverfault.com – I have a process that i run with this command: java -jar loginserver.jar & I need to be able to send commands to this program. I've tried bg/fg but apparently it doesn't persist thru sessions. Is there any other way I can do this? (HowTos)