Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
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 ( [id://888109]=note: print w/replies, xml ) Need Help??


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

The other Anonymous is right. set PAR_GLOBAL_DEBUG=1, see PAR::Environment, http://cpansearch.perl.org/src/RSCHUPP/PAR-Packer-1.008/contrib/docs/who_am_i.txt, http://cpansearch.perl.org/src/RSCHUPP/PAR-Packer-1.008/contrib/docs/where_is_it.txt
  • Comment on Re: Win32::Process - Suspend/Resume/Kill NOT working with binary of par packer?

Replies are listed 'Best First'.
Re^2: Win32::Process - Suspend/Resume/Kill NOT working with binary of par packer?
by Dirk80 (Pilgrim) 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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://888109]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (6)
As of 2024-04-19 16:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found