Using exec and system functions
Posted by: wardazo (---.cable.ubr08.edin.blueyonder.co.uk)
Date: January 17, 2008 01:17PM

Hi

I'm running wamp 1.7.2. I'm trying to run exec("my.bat"winking smiley. The call is successful if there is a simple command like:

echo xxx >yyy.txt

in the bat file but if I want to fire up an application with the bat file, say

C:\windows\system32\cmd.exe

the pages starts to load and then never terminates loading. (I actually want a perl application to run). in services.msc I have ticked "alow service to interreact with desktop" and shut down all firewalls on this computer...

By the way the bat file works fine by itself... its only when its called via php ( or perl in wamp's cgi-bin)

any suggestions

Thanks

Ward

Options: ReplyQuote


Sorry, only registered users may post in this forum.