send commands to a backgrounded jobs stdin

Posted by dpcd on Stack Overflow See other posts from Stack Overflow or by dpcd
Published on 2010-10-05T09:20:05Z Indexed on 2011/02/11 23:25 UTC
Read the original article Hit count: 157

Filed under:
|

I have a java server application that, when its running, you can interact with it sending commands via stdin. I want to write a web interface that can send these commands to it.

In order to do that I need some way of getting commands from php to the stdin for this backgrounded job. Is there a way to do this from console? or possibly write some kind of wrapper that controls the server job and can access its stdin ? could this be done in python?

© Stack Overflow or respective owner

Related posts about php

Related posts about python