Need to call unix shell script from a Net assembley, how would I do it.. and return tabular result(key value pair(s)) to the caller.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Assuming you are running your code in Mono on Linux, you should be able to do something like this:
I see you have now added that you need to be able to parse the output from the shell script. Take a look at this more complex example that shows how to get the output of the script.
It is hard to give advice on how to actually parse the output, as you don’t give us an example of what the output looks like.