Beefy Boxes and Bandwidth Generously Provided by pair Networks chromatic writing perl on a camel
Don't ask to ask, just ask
 
PerlMonks  

Re: Win32::Process - Suspend/Resume/Kill NOT working with binary of par packer?

by Anonymous Monk
on Feb 15, 2011 at 01:23 UTC ( #888109=note: print w/ replies, xml ) Need Help??

Comment on Re: Win32::Process - Suspend/Resume/Kill NOT working with binary of par packer?
Re^2: Win32::Process - Suspend/Resume/Kill NOT working with binary of par packer?
by Dirk80 (Monk) on Feb 15, 2011 at 08:50 UTC

    Thank you very much. This is great help.

    But nevertheless I'm not sure how to get it to run. I now set PAR_GLOBAL_DEBUG as follows in the script:

    $ENV{'PAR_GLOBAL_DEBUG'} = 1;

    So I get a lot of output and I know a bit where it is unpacked.

    But how can I get the values of PAR_0 (the most interesting value for me) and PAR_TEMP. Always after I start "counter.exe" and then I want to see the values of PAR_0 and PAR_TEMP they are undefined. Why?

    I think I have to know where "counter.exe" is unpacked before executing it. So I could call the unpacked perl script with the unpacked perl interpreter in the Win32::Process::Create. But I have no idea how to do it.

    I read the documentation you told me. But still I don't know how to do it.

    And then still another question. Am I right if I say the extracted perl script in the temp directory is a child process of the "counter.exe"? If yes then I do not understand why it is not working. Because I call Win32::Process::Create with the parameter CREATE_NEW_PROCESS_GROUP. So if a kill or suspend is done it should also take into account the child processes.

    As you can see I'm totally confused how to solve it. So I hope that you can help me and give me some more hints.

    Thank you.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://888109]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (3)
As of 2014-04-21 00:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (489 votes), past polls