Hello,

How can I identify the bundled perl binary from within a pp created executable? Perl will NOT be installed on the end user's machine.

Specifically, I would like to do something like this:

Win32::Process::Create($ProcessObj,
                           "full_path_to_the_by now_unwrapped_perl.exe",
                           "perl.exe   bundled_perl_file.pl",
                           0,
                           NORMAL_PRIORITY_CLASS,
                           ".")|| die ErrorReport();

I have need for one process to watch another and kill it if there is a problem. Since I use Tk, which is not thread safe, I cannot use the Windows fork (Perl 5.8.8 + fork + Tk worked on Windows XP but not on Windows 2000).

Another solution would be to create a separate pp'd .exe to be executed as the Win32::Process::Create invoked process. However, the extra time taken up in the initial unwrapping/unbundling, etcetera, would seem unpalatable. That is why I am hoping for a scheme wherein I could use the by-then already unbundled perl.exe.

A quick search reveals that there is no perl.exe anywhere under the par-malcolm directory. My next question is then ... how could my end goal be reached?

Thanks

Reply via email to