Accesing The Host through Telnet (Port NO:23) Usng Java Code In Linux OS
Hello To All,
I wrote the telnet (Port No :23) Program inorder to the access the Linux Host.
After Giving Login and Password through Code.I am trying to fetch the data from there.I am doing it through the OutputReader and BufferedReader Class and I have written Try and Catch Block also.In My File its giving the Some Garbageg Messages and Hanging there itself .
I tried the Same Program by changing the Port No to 21(ftp) iam able to accessing it.But Former is not getting.Pplz Try to help me out in this problem for Linux Environment.
Thnks in advance
Regards
Rahul (Cheers!!! )
# 2
Hello !!
I want to access the Linux Machine through the Telnet .I wrote the Program in java for the same. Telnet session was established Succesfully and Socket too working Fine But I am not able to read the data from there and storing that data in some file called ./SCHFOUT.I am priting the BufferReader through
BufferReader br=new InputStream(sock.getInputStream());
System.out.println(","+(char)br.readLine()); //Hanging Here Not
Proceeding to next Step ...
Here the Problem Came ..Here the Program is Hanging !! Not Proceeding to Another Step at all !!!
Hope u got it !!!
Thnks in Advance !!
Regards
Rahul
(Cheerss !!! )
But that File is showing Empty ...(I use OutputReader class BufferReader ,InputStream Class for the Same )