RE: [PHP-WIN] exec/system/passthru ??????
| From: | Fernando Madruga | Date: | Thu, 15 Mar 2001 15:48:17 +0000 |
| Subject: | RE: [PHP-WIN] exec/system/passthru ?????? | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-6072@lists.php.net to get a copy of this message | ||
Why would you want to leave a program running in the background, if you're
using it to generate content?
First, I believe that Windows NT/2K does not accept or like the ampersand
(&) on the end: all programs launched will run in the background, unless
they are command-line programs running on a dos-shell;
Secondly, I guess that exec(), passthru(), system() and the backticks all
have problems on Windows platforms?!
You'd be better off using two different programs: one would print whatever
you wanted it to print and them would launch the second program to be left
running doing whatever it has to do just before exiting... :)
HTH,
Fernando Madruga
-----Original Message-----
From: Josh Seward [mailto:js389599@ohiou.edu]
Sent: quinta-feira, 15 de Março de 2001 15:10
To: php-windows@lists.php.net
Subject: [PHP-WIN] exec/system/passthru ??????
I am trying to open a program and leave it running in the background. The
script will always hang until I close the program that it opens?
Here is my code
$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,
Josh Seward
js389599@ohioe.edu