run hcicmd from tcl

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf run hcicmd from tcl

  • Creator
    Topic
  • #52744
    Mason Miller
    Participant

      Is it possible to run a hcicmd command within a tcl proc?  If so how do you exec the command?

    Viewing 4 reply threads
    • Author
      Replies
      • #75349
        Charlie Bursell
        Participant

          Windows or Unix?

          On Unix simply exec it as you would any other command.

          On Windows Tcl has a problem, its a windows thing 🙂

          You can only exec .exe, .com, or .bat files.  hcicms is a er; script (.pl)

          We created a command called hcicmdnt for Windows which you can exec directly.

          For other perl (.pl) or Tcl (.htc) scripts you want to exec in windows you need to exec Tcl or perl and pass the full path of the script as an argument

        • #75350
          Mason Miller
          Participant

            On Unix,  thanks I thought I tried that but a guess not. what about setroot and setsite?

          • #75351
            Charlie Bursell
            Participant

              If you are running hcicmd I would assume the root/site is set

              If from CRON, You can set it there

            • #75352
              Mason Miller
              Participant

                Thanks very helpful.

              • #75353
                David Barr
                Participant

                  Just be aware that you probably won’t be able to use hcicmd to directly send commands to your current process. The command thread in a process can’t run while there’s a TPS proc is running, so you won’t get a response.

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