4

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

1 Answer 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

Sign up to request clarification or add additional context in comments.

1 Comment

that presumes that you want to run it on some other machine than the one where you are running the ASP.NET Core application. :) This is not obvious from the question, even though it's a fairly reasonably assumption.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.