RE: [PHP-WIN] Problem with exec and backticks on Win NT

From: Date: Tue, 11 Jul 2000 01:25:47 +0000
Subject: RE: [PHP-WIN] Problem with exec and backticks on Win NT
Groups: php.windows 
Request: Send a blank email to php-windows+get-1006@lists.php.net to get a copy of this message
---------------------------------------------------------------------------- ----------------- Disclaimer: The information contained in this email is intended only for the use of the person(s) to whom it is addressed and may be confidential or contain legally privileged information. If you are not the intended recipient you are hereby notified that any perusal, use, distribution, copying or disclosure is strictly prohibited. If you have received this email in error please immediately advise us by return email at postmaster@normandy.com.au and delete the email document without making a copy. ---------------------------------------------------------------------------- ----------------- Funnily enough that trueism is the exact opposite for sales people and some managers; If something doesn't work the way it should, ALWAYS blame ANYONE else... That's often where the problem lies (trust me on this one) ;) What i wonder though is why you'd want to execute a DOS batch file in the first place? mn -----Original Message----- From: Daniel Gustafsson [mailto:cloaked@hem.passagen.se] Sent: Monday, July 10, 2000 7:21 PM To: php-windows@lists.php.net Subject: RE: [PHP-WIN] Problem with exec and backticks on Win NT >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' =)

« previous php.windows (#1006) next »