与腻子沟通 [英] communicating with putty

查看:107
本文介绍了与腻子沟通的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好

我对你们有一个非常简单的问题,但我想对我来说很难

我的MonoDevelop C#GUI如何将命令(通过按下按钮)传递到腻子窗口并从中读取信息,并与远程Linux服务器通信?

(换句话说,我想通过ssh连接读取命令并将其传递给终端)

它与使用System.Diagnostics"有关. ,或命令行参数解析器,但是我无法弄清楚具体如何.我整天都没有任何好的结果

有人可以写一个小的代码示例吗?很多问题

hello all

I''ve got a very easy question for you guys, but quite difficult for me i guess

How can my MonoDevelop C# GUI deliver commands (by pressing a button on it) to a putty window and read from it as well, communicating with a distanced linux server?

(in other words i want to read and deliver commands to the terminal over ssh connection)

it has something to do with "using System.Diagnostics;" , or command-line argument parser maybe, but im unable to figure out how exactly. Ive spent the whole day without any fine results

can somebody please write a small code example? thx a lot

推荐答案

您可以使用应用程序中的SendKeys将击键发送到腻子窗口.请参阅链接以获取方法.



You can use SendKeys from your application to send keystrokes to the putty window. See this link for the signature of the method.




您可以查看CodeProject的文章: ^ ].
You may have a look at the CodeProject''s article: SSL/TLS client/server for .NET and SSL tunnelling[^].


这篇关于与腻子沟通的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆