none
Windows Subsystem for Linux with Windows Forms c# RRS feed

  • Question

  • I want to send commands from windows form to ubuntu shell and receive the response from the ubuntu shell. I tried using bash scripting but nothing happen. Can anyone help me this query or share any c# code for above scenario?
    • Moved by Bill_Stewart Tuesday, July 31, 2018 3:01 PM Unanswerable drive-by question
    Friday, June 22, 2018 10:52 AM

All replies

  • This is not a C# forum or an Ubuntu forum. Please post in the correct forum for your question.


    \_(ツ)_/

    Friday, June 22, 2018 11:29 AM
  • Hi,

    it is recommended by microsoft to put your question on this forum. as it is related to scripting. Can you suggested me if i am ok . otherwise advice me correct forum?

    Friday, June 22, 2018 11:39 AM
  • C# is not a scripting language.  Post in C# forum.

    Note that there is no way to remotely inter5act with a shell in C# or in any language.  You can use WinRM from Windows to Linux if WinRM support has been installed and configured on the Unix system.

    Post in C# developers forum to learn how to use WinRM with a C# form.

    You still cannot access an existing shell but you can execute Unix shell commands on the remote system.


    \_(ツ)_/

    Friday, June 22, 2018 11:53 AM