Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
    Bookmark Topic Watch Topic
  • New Topic

Issue in executing System Command through Java

 
ashwin bala
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
  • Report post to moderator
Hi,
I am trying to execute a system command through java.I am trying to check whether a particular service is running in a
remote PC.When i execute a same command in local PC i.e. without IP Address, then i am getting proper output response.But
when i use remote IP Address and BufferedReader to get the response ,the application is getting hang after
BufferedReader.readLine() method call.. I have attached the code which i have written.



The execution stops after line 17: bufferedReader.readLine(); with out any error
 
Ranganathan Kaliyur Mannar
Bartender
Posts: 1101
10
Java Netbeans IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Report post to moderator
Duplicate thread, locked.
 
    Bookmark Topic Watch Topic
  • New Topic