Executing a bash script from a TPS-POST tcl proc

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf Executing a bash script from a TPS-POST tcl proc

  • Creator
    Topic
  • #52664
    Ian Morris
    Participant

      We have a bash script that runs basic engine commands (Thread stop, start, etc.).  How can I run the bash script as a post proc?  My only thought is to create a .tcl that looks like below.  But, my idea isn’t working.  It’s not kicking off the bash script.

      Any thoughts?

      Code:


      proc echoprice { args } {
      exec /opt/healthvision/cis5.8/integrator/site_name/exec/processes/medi_omni1/echoMv
      }

    Viewing 0 reply threads
    • Author
      Replies
      • #75049
        Ian Morris
        Participant

          I answered my own question.

          We found out how to successfully execute the engine commands from the .tcl proc.

          Here’s an example:

          Code:


          proc echoprice { args } {
          exec /opt/healthvision/cis5.8/integrator/bin/hcicmd -p medi_omni1 -c “ECHO_price_recv pstop”
          }

          Ian Morris wrote:

          We have a bash script that runs basic engine commands (Thread stop, start, etc.).

      Viewing 0 reply threads
      • The forum ‘Cloverleaf’ is closed to new topics and replies.