Facility Control

 View Only
  • 1.  Run shell script in Dashboard custom panel

    Posted 12-22-2019 15:03

    I am looking to create a custom panel that can run a linux shell script. I know that it's possible to use CGI to accomplish this via a web page but I'd really like to be able to run these linux scripts directly from a custom panel if possible.

    An alternative would be to be able to send an ssh command through a custom panel so I can have all the scripts hosted on another device (like a RPi) and run it that way but I'm not sure if that's possible. 



  • 2.  RE: Run shell script in Dashboard custom panel

    Posted 12-30-2019 23:18

    Hi Justin

    You can access script interpreters in your system via ogScript using the Runtime object. There is an existing example posted to the forum that uses this to execute Apple Script on MacOS but the exact same technique would apply to your Linux platform.

    Check out this link:

    https://support.rossvideo.com/hc/en-us/community/posts/360040043531-Telnet-Control

     

    Cheers

    James


    #DashBoard