|Problems? Is your data what you think it is?|
Calling external programs via cgi on win32by jamesjyu (Acolyte)
|on Jul 02, 2004 at 04:38 UTC||Need Help??|
jamesjyu has asked for the
wisdom of the Perl Monks concerning the following question:
I have been battling this problem all day. The script itself is quite simple.
I am developing a web form that will allow the user to run an external program on the server. I am using Apache on win32, and using Perl via CGI.
At the command line, the script works perfectly. I am able to run the external program with no problems. However, when I hit submit and run the script via the web browser (POST), either nothing happens, or the external program crashes.
I have tried what I think is every technique in perl to run an external program.. system, exec, Win32::Spawn(), Win32::Process::Create(). They all work at the command prompt, but none work through the post method.
I am running under windows XP professional, and have set Everyone to have full control of the directory with the external program. The fact that it works via the command prompt and not the post method leads me to believe that there must be something different in the environment when perl is run through the post method.
Can someone enlighten me about what the difference is? And if you've had similar issues, and how you solved them..?