How do I get the data returned by the telnet server in response to a TelnetSession.Send?
Posted by Van Glass on 15 March 2007 10:55 PM
The TelnetSession.Send(String str) method will return the data received from the telnet server between the time the command was sent and the shell prompt is returned.


string listing = session.Send("ls -al");

The above would return a directory listing and store it in the variable named listing.
(237 vote(s))
This article was helpful
This article was not helpful

Comments (0)
Post a new comment
Full Name:
CAPTCHA Verification 
Please enter the text you see in the image into the textbox below. This is required to prevent automated registrations and form submissions.

Help Desk Software by Kayako fusion