in reply to Re: Fork Problem
in thread Fork Problem

I'm launching a Windows based program with this script.

exec('C:\Progra~1\Blah\Blah');

It works; it runs the program fine. This program is not command line, so it opens in its own window. I then need to run another program after the first one has launched.

Replies are listed 'Best First'.
(Ovid - you can't get there from here (Windows))
by Ovid (Cardinal) on Dec 08, 2000 at 02:38 UTC
    I'm launching a Windows based program with this script.
    That's your problem, then. Windows does not allow you to fork. You'll need to simulate fork, but I wouldn't guarantee the results. Assuming you're running ActivePerl, you can read about this here.

    Cheers,
    Ovid

    Join the Perlmonks Setiathome Group or just click on the the link and check out our stats.

      More importantly WINDOWS does not support signals so I guess kill is not going to work.
      --

      Zigster
        ActiveState's implementation emulates kill just as it emulates fork. Both of these simply use "pseudo-process ID's" instead of a system's real PID for the process. Everything technically runs in one process. See the link Ovid gave for details.