ASP。执行Linux shell命令

时间:2020-11-25 11:59:37

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

是否有办法从ASP中执行linux shell命令。NET Core应用程序并将值返回到变量中?

1 个解决方案

#1


2  

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

目前看来,最好的可能性是使用SSH.Net的预发布。核心https://www.nuget.org/packages/SSH.Net.Core/0.9.1-rc

#1


2  

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

目前看来,最好的可能性是使用SSH.Net的预发布。核心https://www.nuget.org/packages/SSH.Net.Core/0.9.1-rc