I need to develop a program that would be able to connect to a remote computer(host) with username and password and kill the process running in the host computer. I saw taskill can easily kill the process but I am not finding anyway to connect to another computer from inside JAVA. Using remote desktop connection, we can connect but it needs to be implemented in JAVA, or any other language if that is easier. Thanks
syal · Apr 13, 2015 9:23 AM · 18,470 views
I haven't done it myself but you could try to use jrDesktop. Its open source remote desktop application built on Java.
helpjava11 · Apr 13, 2015 10:22 AM
if you can write an application in remote host to kill the process there itself, you can connect to remote host using RMI from your local.
paani_ma_paade_jasto · Apr 13, 2015 12:06 PM
paani ji, The host name is an user entry so can change as required and it wont be feasible to put the program in all the host computers. helpjava ji, Do you think it might work to connect windows server 2008. Thanks all for your input.
syal · Apr 13, 2015 3:14 PM
http://stackoverflow.com/quest...
prankster · Apr 13, 2015 4:00 PM
These sorts of stuffs are easy from shell scripts. You can then call this script thro java object using Runtime class. Is this a college assignment or ur job related stuff?
robwin · Apr 13, 2015 8:25 PM
This is a job related stuff for a buddy of mine. But I thought the shell scripts or ssh were used only to connect to Linux server. To connect windows server through JAVA, I am not sure what is used?
syal · Apr 14, 2015 10:10 AM
http://comptb.cects.com/instal... Last edited: 14-Apr-15 10:14 AM
prankster · Apr 14, 2015 10:13 AM
Thank You Prankster for the help regarding how to install ssh on 2008 server, however as I stated earlier there are couple of windows 2008 servers that we need to connect to, so installing ssh on all of them might not be so feasible, so I was looking for another route as all I need to do is pass just few command lines to those 2008 servers through our windows 7 computers.
syal · Apr 14, 2015 10:24 AM
Just figured out that using TaskList to see the list of process in the server and the taskkill to kill the process would work for now. Thank You all for your input
syal · Apr 14, 2015 11:15 AM
This conversation is preserved exactly as it was on the original Sajha.com and can't accept new replies.
Start a New Discussion