Thanks Steppen, I've actually used $$ to retrieve the current PID, but 
unfortunataley my exe gets wrapped in Digital Rivers Armadillo software to 
create a trial version of the software and when the trial has ended the 
software terminates the first PID and doesn't effect the main app at all.  Any 
suggestions or feedback are very much appreciated.
 
Thanks for your time,
-Paul

________________________________

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Thu 11/9/2006 5:07 PM
To: Smith, Paul E
Subject: Re: PAR and PIDs on Win32



Hi Paul,

thank you for your mail. I'm just the "release manager" of PAR. We're
doing the development on the [email protected] mailing list. You will usually
get much, much better help from the list than from me directly because
I'm not the most knowledgeable person when it comes to some PAR details.

Smith, Paul E Paul.Smith3-at-ca.com |PAUSE3| schrieb:
> I'm using your PAR module to create exe's via the following command on
> Windows:
>
> pp --gui -o myProg.exe myProg.pl
>
> Using the '--gui' flag does eliminate the console window but I still see
> a second PID in the Windows task manager that I'm assuming is associated
> with the console.  Is it possible to remove this so executing the
> program only produces one Process ID tied to the exe?  The only reason I
> ask is that several of the scripts are used in conjunction with the
> Process IDs and I have to programmatically determine which one is really
> tied to the app.

The second PID is not associated to a console but rather to a remnant of
the way the pp-ed executable "bootstraps".

Basically, the exe you run extracts to a cache directory (unless it did
so previously) and then runs another exe of the same name from there.
When the subprocess finishes, the parent (It's not a real fork or
anything, I'm using the term laxly here.) cleans up the cache if
applicable. That's not great, but, right now, the only way the cleaning
up works.

If you are just interested in your PID, try the "$$" variable. It has
the PID of the current process.

I'm sending a copy of this mail to the mailing list. Perhaps somebody
else wants to shed more light on this.

Steffen



Reply via email to