exec/system/pasthru I NEED HELP!!!!
| From: | Josh Seward | Date: | Thu, 15 Mar 2001 16:21:27 +0000 |
| Subject: | exec/system/pasthru I NEED HELP!!!! | ||
| References: | 1 | Groups: | php.gtk |
| Request: | Send a blank email to php-gtk+get-921@lists.php.net to get a copy of this message | ||
Hello,
I need to run this program and send commands to it while its running. The
program I am running excepts keyboard input commands, but I want my program
to give it the commands it needs. Is there anyway of doing this?
I want my program to launch a dos prgram (Does this then hangs?) and then
send commands to the same program it just launched.
Here is my code as is:
$result = passthru($command."& 1> output.txt 2>&1; print output.txt; &",
$pass);
I have tried using exec() system() and passthru() all with the same effect?
Does anyone know how to do this?
I am running win2000!
Thanks again,
Josh Seward
js389599@ohiou.edu