Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Killing Process on Win32 systems

by gaggio (Friar)
on Jul 25, 2001 at 19:31 UTC ( #99715=note: print w/ replies, xml ) Need Help??


in reply to Killing Process on Win32 systems

As mentionned by LD2, I uploaded some code a while ago about getting a remote task list. This code works - I testet it again this morning. If you want to try it out, since it is in the form of a function, just add the function get_remote_process_list() in a main program that looks like this:

use Win32::PerfLib; %tasklist = get_remote_process_list($_[0]); foreach $pid (keys %tasklist) { print "$pid -- $tasklist{$pid}\n"; }

Now, good remarks have been posted in this thread so far. I guess the most important thing for you, RayRay459, is to know that it is impossible to kill a task remotely if you haven't created it yourself. This is why I wrote along with my code submission that one needs a little more work and create a client-server interface. The way I did it here at my company is that a hidden server runs on each remote-controlled machine, and the client talks to it through some kind of protocol. Creating and killing tasks is always done by the server. The server keeps a list of running tasks that it created, and is able to kill all of those. It is definitely possible to not keep the tasks in a list and look for a particular task by its name, but this could be a little dangerous...

Finally, the whole stuff on the client side can be a CGI to have some kind of "UI" in a web browser! It looks pretty cool here!
Good luck RayRay459, and sorry to not have replied to your email - I lost your address.

Father gaggio
.


Comment on Re: Killing Process on Win32 systems
Select or Download Code
Re: Re: Killing Process on Win32 systems
by RayRay459 (Pilgrim) on Jul 26, 2001 at 19:55 UTC
    Thanks again for your help michel. I really appreciate you taking time to answer me back. I will try to hack on the CGI UI stuff and see what i can come up with. Thanks, Ray

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (11)
As of 2015-07-07 08:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (87 votes), past polls