Re: exec hanging browser
| From: | myMars | Date: | Tue, 25 Jul 2000 09:14:12 +0000 |
| Subject: | Re: exec hanging browser | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-1284@lists.php.net to get a copy of this message | ||
TRY exec("command.com /c file.bat");
"Christopher Hahn" <CHahn@peregrine.com> wrote in message
news:48EC150CA6E4D311B18600508B95ADF20155AF9E@mail1-sd.peregrine.com...
>
> Hello
>
> I have a tcl script that I want to call from a
> webpage, using PHP.
>
> This script normally takes a few minutes to run
> (as long a 30-40 minutes), and I know that usually
> exec will wait on the call, so I wrapped a batch file
> around the call, using "start" to force the run into
> the background.
>
> Now I have a bat file that returns to the prompt
> immeadiately. (key point!)
>
> but the call:
> exec("filename.bat");
>
> still hangs my browser.
>
> I have also tried:
> exec("filename.bat 2> nul");
>
> with no more success.
>
> Any ideas appreciated,
>
> Christopher
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-windows-unsubscribe@lists.php.net
> For additional commands, e-mail: php-windows-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>