如何向putty发送命令
我正在用 C 编写一个简单的可执行文件,需要打开 putty 会话并向其发送命令,然后关闭 putty。 我可以打开/关闭腻子会话(我没那么糟糕),但我不太确定如何向腻子发送命令。
有任何想法吗??
I'm writing a simple executable in C that needs to open a putty session and send commands to it, then close putty. I can open/close the putty session (i'm not that bad) but i'm not too sure on how to send putty the commands.
Any ideas??
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
来自 PuTTY 常见问题解答:
除了直接打开站点之外,Plink 还可以使用 PuTTY 保存的会话。
PLink 的选项记录在 PuTTY 手册的第 7 章中。
From the PuTTY FAQ:
Plink can use PuTTY's saved sessions in addition to opening sites directly.
PLink's options are documented in Chapter 7 of the PuTTY manual.
使用 DLL,卢克。 http://www.winputty.com/
Use the DLL, Luke. http://www.winputty.com/
您是否查看过 QuickPutty 的源代码? 它已获得 LGPL 许可。
Have you looked at the source for QuickPutty? It's LGPL licensed.