in reply to Re: launching external program with SYSTEM causes script to hang until program closed
in thread launching external program with SYSTEM causes script to hang until program closed

That's great for UNIX-y systems.

fork() uses threads.pm on Windows, so (in some situations) you may wish to use Win32::Process::Create() instead.

-David

  • Comment on Re^2: launching external program with SYSTEM causes script to hang until program closed

Replies are listed 'Best First'.
Re^3: launching external program with SYSTEM causes script to hang until program closed (system 1)
by tye (Sage) on Sep 27, 2007 at 04:12 UTC

    Even easier on Win32 is system( 1, $cmd ). It is unfortunate that this easy way to "spawn" (which the Perl C code knows how to do portably) was never exposed for Perl scripts to do portably.

    - tye