#9954 [Com]: php.exe hangs when executing external batch file

From: Date: Thu, 15 Aug 2002 19:35:50 +0000
Subject: #9954 [Com]: php.exe hangs when executing external batch file
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-16931@lists.php.net to get a copy of this message
ID: 9954 Comment by: dave973@optonline.net Reported By: dave973@netzero.net Status: Closed Bug Type: Program Execution Operating System: Windows NT 4.0/SP6 PHP Version: 4.0.4pl1 New Comment: Hi, This bug was never fixed. I am still trying to run an access macro by calling an ms-dos batch file with exec() system() or passthru() in php version 4.1.2. The browser still hangs, and when you look at the task manager on the NT web server: php.exe, msaccess.exe, and cmd.exe are all hanging and can't be terminated. Thanks. Previous Comments: ------------------------------------------------------------------------ [2001-06-01 13:37:39] jmoore@php.net Cant reproduce, no feedback. Closing. - James ------------------------------------------------------------------------ [2001-04-29 19:06:34] derick@php.net Can you try this tomorrow when PHP 4.0.5 is released? There was a lot of changes to this piece of code. ------------------------------------------------------------------------ [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 Files\Microsoft Office\Office\" REM Starts Microsoft Access and runs the macro. START /WAIT Msaccess.exe "C:\inetpub\wwwroot\webcolor\webcolor.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. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=9954&edit=1

« previous php.bugs (#16931) next »