Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
October 19, 2005, 10:28 pm
rate this thread
command, and have it interact with the user just as if he had ran it
from a shell. (I don't need my script to send input to the command).
Ideally I would also like to capture the STDOUT into a variable,
although this is not a requirement.
None of the PHP program-execution commands seem to work for me. The
closest I've come is:
which takes user input, but it seems to buffer the output until you
type something other than a carriage return. I want it to behave
exactly as it does from a shell. Is this possible?
Re: Execute extneral programs with interactivity?
able to make it do basically the same thing that system() or popen()
was doing. It still doesn't seem to handle user input normally.
I guess I need to send the stdin (from the PHP script) to the stdin of
the process that I open. But how do I do that?