RE: [PHP-WIN] Problem with exec and backticks on Win NT
| From: | Daniel Gustafsson | Date: | Mon, 10 Jul 2000 11:20:32 +0000 |
| Subject: | RE: [PHP-WIN] Problem with exec and backticks on Win NT | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-989@lists.php.net to get a copy of this message | ||
>In my test I tried to excute some batch using command.com (
exec("c:\command.com /k mybatch.bat" ); ). Without command.com the batch
doesn't work.
>
>When command.com ended, I saw that my batch was executed successfully, but
php still running, probably waintig for the end of command.com . Seems that
php doesn't catch the command end.
If something doesn't work the way it should, ALWAYS blame YOURSELF first
hand.. That's often where the problem lies (trust me on this one) ;)
The '/k' switch means "execute the following command and stay in the
command-line interpreter", the one you should use is '/c' =)