Re: Bug #9954 Updated: php.exe hangs when executing external batch file
| From: | ¥ DaVe ¥ | Date: | Sun, 29 Apr 2001 23:15:39 +0000 |
| Subject: | Re: Bug #9954 Updated: php.exe hangs when executing external batch file | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-53004@lists.php.net to get a copy of this message | ||
Sure... I will reply with the outcome. Thanks.
Bug Database wrote:
>
> ID: 9954
> Updated by: derick
> Reported By: dave973@netzero.net
> Old-Status: Open
> Status: Feedback
> Bug Type: Program Execution
> PHP Version: 4.0.4pl1
> Assigned To:
> Comments:
>
> Can you try this tomorrow when PHP 4.0.5 is released? There was a lot of changes to this piece
> of code.
>
> Previous Comments:
> ---------------------------------------------------------------------------
>
> [2001-04-29 17:33:26] derick@php.net
> User reported:
>
> Yes, the batch file works fine... it only hangs when run from php.
>
> -Dave
>
> ---------------------------------------------------------------------------
>
> [2001-04-29 06:21:52] jmoore@php.net
> does the batch file work if you run it from the command prompt without PHP?
>
> - James
>
> ---------------------------------------------------------------------------
>
> [2001-03-23 09:09:08] dave973@netzero.net
> Platform/configuration = (NT4/SP6)
>
> I have created a batch file that opens MS Access and runs a macro... This macro does 3 things:
>
> 1. Deletes a table
>
> 2. Imports a delimited text file into a new table
>
> 3. Quits Access and Saves All changes.
>
> Here is the batch file:
>
> REM Defines a path for the Microsoft Access executable
>
> PATH = "C:Program FilesMicrosoft OfficeOffice"
>
> REM Starts Microsoft Access and runs the macro.
>
> START /WAIT Msaccess.exe "C:inetpubwwwrootwebcolorwebcolor.mdb" /x
> "Importer"
>
> EXIT
>
> When I call this .bat file with the exec() or system() functions, the browser hangs and when I
> check the Task Mgr... I have php.exe, CMD.exe, and msaccess.exe all hanging (and I also can not end
> the processes - Access is denied). For every page access, an addition 3 processes open and hang.
>
> ---------------------------------------------------------------------------
>
> ATTENTION! Do NOT reply to this email!
> To reply, use the web interface found at
> http://bugs.php.net/?id=9954&edit=2
NetZero Platinum
No Banner Ads and Unlimited Access
Sign Up Today - Only $9.95 per month!
http://www.netzero.net