[Show all top banners]

syal
Replies to this thread:

More by syal
What people are reading
Subscribers
[Total Subscribers 0]
:: Subscribe
Back to: Kurakani General Discussion Refresh page to view new replies
 Programming Help (Java Preferred)
[VIEWED 2883 TIMES]
SAVE! for ease of future access.
Posted on 04-13-15 9:23 AM     Reply [Subscribe]
Login in to Rate this Post:     0       ?        
 

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
 
Posted on 04-13-15 10:22 AM     [Snapshot: 48]     Reply [Subscribe]
Login in to Rate this Post:     0       ?        
 

I haven't done it myself but you could try to use jrDesktop. Its open source remote desktop application built on Java.
 
paani_ma_paade_jasto
Posted on 04-13-15 12:06 PM     [Snapshot: 86]     Reply [Subscribe]
Login in to Rate this Post:     0       ?        
 

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.
 
Posted on 04-13-15 3:14 PM     [Snapshot: 173]     Reply [Subscribe]
Login in to Rate this Post:     0       ?        
 

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.
 
Posted on 04-13-15 4:00 PM     [Snapshot: 200]     Reply [Subscribe]
Login in to Rate this Post:     0       ?        
 

http://stackoverflow.com/questions/15415822/ssh-in-java-run-commands-on-another-machine
 
Posted on 04-13-15 8:25 PM     [Snapshot: 270]     Reply [Subscribe]
Login in to Rate this Post:     0       ?        
 

These sorts of stuffs are easy from shell s. You can then call this thro java object using Runtime class. Is this a college assignment or ur job related stuff?
 
Posted on 04-14-15 10:10 AM     [Snapshot: 347]     Reply [Subscribe]
Login in to Rate this Post:     0       ?        
 

This is a job related stuff for a buddy of mine. But I thought the shell s or ssh were used only to connect to Linux server. To connect windows server through JAVA, I am not sure what is used?
 
Posted on 04-14-15 10:13 AM     [Snapshot: 350]     Reply [Subscribe]
Login in to Rate this Post:     0       ?        
 

http://comptb.cects.com/install-configure-ssh-on-windows/
http://www.windowsnetworking.com/articles-tutorials/windows-server-2008/install-SSH-Server-Windows-Server-2008.html

Last edited: 14-Apr-15 10:14 AM

 
Posted on 04-14-15 10:24 AM     [Snapshot: 365]     Reply [Subscribe]
Login in to Rate this Post:     0       ?        
 

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.
 
Posted on 04-14-15 11:15 AM     [Snapshot: 391]     Reply [Subscribe]
Login in to Rate this Post:     0       ?        
 

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
 


Please Log in! to be able to reply! If you don't have a login, please register here.

YOU CAN ALSO



IN ORDER TO POST!




Within last 365 days
Recommended Popular Threads Controvertial Threads
TRUMP 2016!!! Here is why?
महानियिका प्रियंका कार्कीजीलाइ खुल्ला पत्र !
Why you can't trust the vaccines 100%
How long does it take to get I485 approved?
TPS Timeline
What are your first memories of when Nepal Television Began?
Divorce Law in Nepal.
कोमल ओलि र धिरेन्द्र बिचको अफेयर
Starting business in Nepal
H-1B 2018/2019: कसैको approval notice आयो?
भाउजु आउनु भाकी छिन रे नि !
Wedding Costs in Nepal ? Party, Band Baaja !!!!???
मेरो बागडोलमा रहेको घर मा छोरी को नाता ले पूर्वराष्ट्रपति लाइ स्वागत छ
👭 👭 👭 👭 देसी भाभी 👭 👭 👭 👭
sarai chada vaye keti haru
पिन्कुको नया काले हस्पि नाक चुचेय भाते भतुवा
Gemstones in Nepal
Nepali Billionaires & Millionaires
यो मोमो को रेसिपी कोहि सित होला ?
NEPALI CHARLES SHOBRAJ ZUBIN SHARMA URF PRAKASH PAUDYAL!
sarai chada vaye keti haru
How to differentiate a PAKHE from a SHAHARIA
Build the Wall-MAGA
Finally tps extended (18 months) ( full statement)
Why you can't trust the vaccines 100%
महानियिका प्रियंका कार्कीजीलाइ खुल्ला पत्र !
TRUMP 2016!!! Here is why?
NOTE: The opinions here represent the opinions of the individual posters, and not of Sajha.com. It is not possible for sajha.com to monitor all the postings, since sajha.com merely seeks to provide a cyber location for discussing ideas and concerns related to Nepal and the Nepalis. Please send an email to admin@sajha.com using a valid email address if you want any posting to be considered for deletion. Your request will be handled on a one to one basis. Sajha.com is a service please don't abuse it. - Thanks.

Sajha.com Privacy Policy

Like us in Facebook!

↑ Back to Top
free counters