How do I kill a remote machines process using java api?

There isn't any automatic way to get the remote machine's PID for "prog". If you have control of prog's source, you could have it output its PID to stdout and then you could read it from your Process.

There isn't any automatic way to get the remote machine's PID for "prog". If you have control of prog's source, you could have it output its PID to stdout and then you could read it from your Process. Assuming you're on a *nix type machine... Once you have the PID, to kill it you will need to send another command to the remote machine using ssh.

Something like String cmdKill = {"/usr/bin/ssh", "remoteIPAdd", "/bin/kill", ""+pid}; being fed into a new process should do the trick.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions