Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
I just installed apache and perl for win 2k.
Perl seems to work ok, and the apache install seems to work fine, my friend can type in my ip address and everything works great off my tiny dsl connection.
I want to create a perl script that will run a windows exe program I wrote. If I call 'system('d:/myprog.exe')', nothing happens, and the perl script hangs. I can see in the task manager that myprog.exe was started, but I do not see the interface, and nothing is happening.
When I use task manager to try to kill it, permission denied.
I assume this is some sort of problem involing thread or process inheritance or something.
I'M JUST TRYING TO LAUNCH A SILLY WINDOWS PROGRAM.
WHY IS THIS SO DAMN HARD?
And nobody seems to have this problem, I've looked everywhere, can't believe this is not a common problem, oh well.
I installed normal Apache, Im not smartie enough to screw up the default install. I installed normal regular ActivePerl.
YES, a simple perl script seems to work fine, not unless a simple script can work, complicted doesnt, and perl is still screwed. (doubt it)
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.
Whats the 'doh!' answer for this! Help!
Edit by tye
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: system() hangs
by seattlejohn (Deacon) on Mar 10, 2002 at 07:07 UTC | |
|
Re: system() hangs
by gellyfish (Monsignor) on Mar 10, 2002 at 09:50 UTC | |
|
Re: system() hangs
by jlongino (Parson) on Mar 10, 2002 at 07:46 UTC |