Re: exec() IIS 5 php

From: Date: Fri, 05 Nov 2004 19:54:06 +0000
Subject: Re: exec() IIS 5 php
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-24910@lists.php.net to get a copy of this message
My script is like this ***************************************************** <?php echo "Starting the program!!!"; $cmd = "\"C:\MATLAB6p5\bin\win32\matlab.exe\" /nosplash /nodesktop /r -c E:\\SSN\\cognetics\\amp_fit_power_with_mex\\test2.m"; exec($cmd,$output,$rv); echo "program started!!!"; ?> ******************************************************
I have never used Matlab (sorry), but I'm guessing Matlab requires interactive usage? If the answer to this question is "yes", then PHP is going to hang because it's waiting on Matlab to finish exec()'ing, but Matlab will be waiting for PHP to interact with it. I'm not aware of a solution to this problem. Or is this more like a filter in the pipeline and $cmd should be producing some kind of output for the browser?

« previous php.windows (#24910) next »