title: PHP Passing Input to Runing Python Script
body: <p>I have a problem in which I have to pass input to a Python script that must not terminate. Therefore I need to pass arguments to the Python script while it is running. The Python script will also not be executed in the same PHP script so it cannot incorporate any sort of <code>expect</code> script due to <code>expect</code> requiring that you spawn the process in the same script! I have full access to the PHP and Python scripts so I can modify them at will. I also would not prefer hacky ways like making the PHP write to a text file and having the Python script read the commands from the file. Is their any less hacky way to do this?</p>