Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Run a script on a linux box from Windows OS using windows-form written in C#

Run a script on a linux box from Windows OS using windows-form written in C#

Scheduled Pinned Locked Moved C#
perllinuxcsharptoolshelp
4 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    ksaw123
    wrote on last edited by
    #1

    Help please Does anyone know an elegant way to initiate a bash/perl script (to run on a linux box) from a windows form written in C#? Thanks

    L B 2 Replies Last reply
    0
    • K ksaw123

      Help please Does anyone know an elegant way to initiate a bash/perl script (to run on a linux box) from a windows form written in C#? Thanks

      L Offline
      L Offline
      Lukasz Nowakowski
      wrote on last edited by
      #2

      Never did it, but I think that the most straight-forward way would be to connect to linux through ssh and run commands. Check this[^] article from CP.

      1 Reply Last reply
      0
      • K ksaw123

        Help please Does anyone know an elegant way to initiate a bash/perl script (to run on a linux box) from a windows form written in C#? Thanks

        B Offline
        B Offline
        Bernhard Hiller
        wrote on last edited by
        #3

        Another idea is to use a folder which both machines share. On the Linux machine, a program checks that folder for new files, and if a new file is encountered, that program then executes some actions depending on the file. This method requires that you develop such an "observer" for Linux and get it running on the Linux machine before your users try to start something from your Windows program.

        D 1 Reply Last reply
        0
        • B Bernhard Hiller

          Another idea is to use a folder which both machines share. On the Linux machine, a program checks that folder for new files, and if a new file is encountered, that program then executes some actions depending on the file. This method requires that you develop such an "observer" for Linux and get it running on the Linux machine before your users try to start something from your Windows program.

          D Offline
          D Offline
          Dave Kreskowiak
          wrote on last edited by
          #4

          This seems way to convoluted and overly complex to be "elegant". Don't you think?

          A guide to posting questions on CodeProject[^]
          Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
               2006, 2007, 2008
          But no longer in 2009...

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups