This project is read-only.

how to get data from telnet session?

Sep 27, 2011 at 2:17 PM

hi

thank you very much for your program.I wanted to telnet to some devices in our network and I used your program. (your dll file) and it did great.now I need to use the output of a command that I send to a device via telnet in my c# code and I don't know how I could do this via your program.(I send the command via SendLine("") function and I want to store the output of the command in a c# variable )I just used  Expect("") and SendLine("") functions and I'm not a programmer.

please help me.

Best regards.

Oct 16, 2011 at 9:58 PM

hi

I have same problem and I couldn't figure out till now. if eny body now please help me.

actually I wane save the output off my command to an spesific text file

best regurds

Oct 23, 2011 at 11:12 AM

hi

you can use the Read() function of telnet object and save the content of telnet session in an array of bytes.

byte[] buff = new byte[1024];

int readLen = telnet.Read(buff, 0, buff.Length);