Hello friends, In my program i made 1 screen, in that i put 1 textarea and 1 button. When user press that button i want to run ping command and its output i want in textarea. How can i do that, give fast reply its urgent for me. Thanx
Joined: Mar 18, 2003
Hi Siddharth, This is not a simple task. The java Socket class does not allow low level access to the TCP/IP stack. You could use Runtime.exec () to run the ping command with a redirection of its output to a file, which you can then disect for results. Some other rancher may have done this and might be prepared to post their code. However, be aware that this would be a platform dependent hack. Ed
The nice thing about Standards is that there are so many to choose from!