Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister

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

Replies are listed 'Best First'.
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?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://99715]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (8)
As of 2018-06-17 22:49 GMT
Find Nodes?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?

    Results (107 votes). Check out past polls.