470,573 Members | 1,735 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,573 developers. It's quick & easy.

programmatic telnet session

I have searched extensively and have found only hints of what is needed so
far: What I want to do is open a telnet session to a remote host on a
given port, login, execute a simple command, and retrieve the results. The
TcpClient class documentation provides a nice example, but it does not
work for telnet... I suspect there is more to the negotiation for telnet
than just the generic TCP client they present in the sample. I am hoping
someone knows of a library out there to do this common task.
Mar 22 '06 #1
3 4839
I distinctly remember seeing as least one "freeware" or open source
implementation of a C# Telnet session class. Might have been on
codeproject.com; Look some more!
Peter

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"michael sorens" wrote:
I have searched extensively and have found only hints of what is needed so
far: What I want to do is open a telnet session to a remote host on a
given port, login, execute a simple command, and retrieve the results. The
TcpClient class documentation provides a nice example, but it does not
work for telnet... I suspect there is more to the negotiation for telnet
than just the generic TCP client they present in the sample. I am hoping
someone knows of a library out there to do this common task.

Mar 23 '06 #2
Hi Michael,

Here is a link for your reference.
http://www.csharphelp.com/archives/archive239.html
Terminal Control Project (C# VT100 SSH Telnet)
http://www.codeproject.com/csharp/terminalcontrol.asp

Best regards,

Peter Huang

Microsoft Online Community Support
==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.

Mar 23 '06 #3
Hi
http://www.gotdotnet.com/community/u...x?query=telnet

http://www.c-sharpcorner.com/Code/20...tScripting.asp

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation

"michael sorens" <m_********@community.nospam> wrote in message
news:op***************@spo-cont-2-dt.itron.com...
I have searched extensively and have found only hints of what is needed so
far: What I want to do is open a telnet session to a remote host on a
given port, login, execute a simple command, and retrieve the results. The
TcpClient class documentation provides a nice example, but it does not
work for telnet... I suspect there is more to the negotiation for telnet
than just the generic TCP client they present in the sample. I am hoping
someone knows of a library out there to do this common task.

Mar 23 '06 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by kumar | last post: by
3 posts views Thread by Yannick Turgeon | last post: by
4 posts views Thread by Donnal Walter | last post: by
2 posts views Thread by john brown | last post: by
5 posts views Thread by richardtinkler | last post: by
5 posts views Thread by Greg Martz | last post: by
2 posts views Thread by eight02645999 | last post: by
2 posts views Thread by vmalhotra | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.