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:[EMAIL PROTECTED]]
Sent: quinta-feira, 15 de Março de 2001 15:10
To: [EMAIL PROTECTED]
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
[EMAIL PROTECTED]

--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to