ASP.NET Core执行Linux Shell命令 [英] ASP.NET Core execute Linux shell command

查看:535
本文介绍了ASP.NET Core执行Linux Shell命令的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以从ASP.NET Core应用程序中执行linux shell命令并将值返回到变量中?

Is there any way to execute a linux shell command from within an ASP.NET Core application and return the value into a variable?

推荐答案

当前最好的可能性似乎是使用SSH.Net.Core

Best possibility currently seems to be to use the prerelease of SSH.Net.Core https://www.nuget.org/packages/SSH.Net.Core/0.9.1-rc

这篇关于ASP.NET Core执行Linux Shell命令的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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