Hi, smart C programmer, newbie perl programmer.

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


In reply to system() hangs by Anonymous Monk

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.