interact with seperate process, futile correct ?
| From: | firepage | Date: | Sun, 17 Nov 2002 03:42:56 +0000 |
| Subject: | interact with seperate process, futile correct ? | ||
| Groups: | php.gtk.general | ||
| Request: | Send a blank email to php-gtk-general+get-2656@lists.php.net to get a copy of this message | ||
Hi,
Pretty sure I cant do this on win32 but I have been trying anyway...
If want to exec a command to say 'dir' or 'PATH' etc I have no problems, but
when an external process is interactive is there anyway of ..err...interacting with it ?
eg. I try to pass say:: exec('rm -i c:\some\important\file.file');
Now the 'are you sure... y/n ' etc stuff displays in the main process window and I can say
'y' or 'n' there but I want to grab that response and display it in my app.
I have tried reading php://stdout , ob_start()'ing and grabbing the output buffer contents etc
but to no avail.
Now I assume this is because it can't be done, since the 'rm' is running in a
seperate process ?? in fact I am sure it can't but I cant stop trying regardless.
They shoot horses so please put me out of my misery.
Regards,
Simon Wheeler
firepages