Is there a problem here with the fact that the program I am trying to launch has a GUI? I have tried using 'cmd.exe', and cmd.exe hangs, cant kill it.
This is the expected behaviour I'm afraid, when you start a GUI program from a CGI program it is not going to appear on your desktop so you have no way of interacting with it, it is started at the behest of another user in effect and in general one wouldn't want another users programs appearing on your desktop. I can't test this right now but if you are running NT or 2000 then you might be able to alter the configuration of the Apache service so that it has the 'Interact with Desktop' attribute set and change it so it runs under your user but this is almost certainly a very bad thing in security terms ...
As for cmd.exe you *can* get the output from that to the browser if you do something like:
But again I can't test that right now.print `cmd.exe /c dir`;
/J\
In reply to Re: system() hangs
by gellyfish
in thread system() hangs
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |