Running hciprocstatus from TCL Script

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf Running hciprocstatus from TCL Script

  • Creator
    Topic
  • #52094
    Robert Milfajt
    Participant

      I wanted to be able to run hciprocstatus, actually poll the monitor daemon from a TCL script.  After reading the hciprocstatus TCL code, I found this bunch of code:

      Code:


         after 30000 serverTimeOut

         if { [catch {makeStatusServerConn $initcmd} msg] } {
             puts stderr “Unable to contact hcimonitord: $msgn”
             exit 69                         ;# EX_UNAVAILABLE
         }


      Can I use the makeStatusServerConn call from my TCL script?  I am assuming I would need to set the serverTimeOut variable too.

      Thanks in advance for any help,

      Robert Milfajt
      Northwestern Medicine
      Chicago, IL

    Viewing 0 reply threads
    • Author
      Replies
      • #73043
        Robert Milfajt
        Participant

          So I figured out this complex event processing that connects to the monitor daemon and executes a command defined within the calling TCL proc.  Also figured out the use of the after command to process a timeout if the daemon does not respond.  This is cool stuff, and brings me back to my college days with concurrent processing, etc.

          Anyhow, my question is:  Can I use tihs call in future versions of Clovelreaf?

          I want to know if this methodology for polling the monitor daemon is going to change in the next several versions of the product.  I am at 5.5 rev1, and we are planning an upgrade to either 5.7 or 5.8 by the end of the calendar year.

          Thanks,

          Bob

          Robert Milfajt
          Northwestern Medicine
          Chicago, IL

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