从 C# 远程调用 unix shell 脚本 [英] Calling unix shell script remotely from C#

查看:37
本文介绍了从 C# 远程调用 unix shell 脚本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我当前的项目中,我需要从 C# 应用程序调用 Unix shell 脚本.无论脚本是否成功执行或发生任何错误,我还需要获取响应.

In my current project, i need to call a Unix shell script from the C# application. I also need to get the response back whether the script has been execute successfully or any error has occurred.

C# 程序正在 Windows 机器上运行.我需要连接到 Unix 机器并执行脚本.

The C# program is running on a Windows machine. I need to connect to a Unix machine and execute the script.

谁能告诉我如何使用 C# 做到这一点?

Can anyone let me know how this can be done using C#?

推荐答案

这能解决您的问题吗?

sharpSsh - 用于 .NET 的安全外壳 (SSH) 库

更新

请参阅开发者网站 SharpSSH 了解有关如何使用该工具的更多信息.

Refer to the developer's site for SharpSSH for more information on how to use the tool.

更新 2

  • 将开发者网站的链接更改为存档链接.

这篇关于从 C# 远程调用 unix shell 脚本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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