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.