Calling unix shell script remotely from C#

前端 未结 3 1451
陌清茗
陌清茗 2021-02-04 19:09

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 e

3条回答
  •  囚心锁ツ
    2021-02-04 19:24

    Even i had the same problem, i have googled for solution for around 1 month.

    Finally, i have decided to use plink.exe (command line version of putty.exe) to connect to unix box and execute a script there.

    You have to use plink through c# process, i have tried it and this works amazingly.

    But rite now the problem i am facing is when i am running a script from c# process i am unable to pass arguments to that script. Probably it would be rite to say that i do not know how to do that.

    Regards -Aakash

提交回复
热议问题