User defined commands

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf User defined commands

  • Creator
    Topic
  • #48078
    Bakha Nurzhanov
    Participant

      Is anyone using user defined commands in version 5.3?

      I used to be able to put shell scripts in $HCIROOT/usercmds directory (on 3.8.1P) and then was able to recall them using drop down menu (under List Commands button) in User-Defined Commands category. In new version of CL this trick does not work anymore. I read the manual and placed this script in $HCIROOT/usercmds and $HCIROOT/bin and also all other common “bins” /bin /usr/bin /usr/local/bin.

      I can type command name in the entry field however when I press Execute and it comes back with a pop-up window complaining that command cannot be found. However if I type ls or hciconnstatus or ping in that entry field they execute properly.

      What else should I do to try to make this work? Is there an INI file that I need to modify?

      Thanks

      Bakha Nurzhanov

      Valley Medical Center

      Renton, WA

    Viewing 4 reply threads
    • Author
      Replies
      • #57565
        James Cobane
        Participant

          Bakha,

          One thing to double-check is the first-line of your tcl scripts; make sure that they have been updated to reflect the new path to the tcl interpreter for the newer version of Cloverleaf.

          Hope this helps.

          Jim Cobane

          Henry Ford Health

        • #57566
          Bakha Nurzhanov
          Participant

            I need to run a pure shell script not a TCL script. So I have specified /bin/sh as interpreter. The problem is its name never shows up in the user-defined container in the remote commands tool

          • #57567
            Anonymous
            Participant

              Check the execution permissions.. just in case

            • #57568
              Dean Basher
              Participant

                Bakha,

                Try creating a directory under the qdx5.3 directory name “usercmds” and put your scripts there and relaunch the gui and see if that works..

              • #57569
                Bakha Nurzhanov
                Participant

                  Dean,

                  here is what I did:

                  I moved usercmds to /quovadx/qdx5.3/, and now my scripts show up in the User Defined Commands. However if I try to execute them – they cause exception. I was able to fix them by creating symlinks between usercmds and $HCIROOT/bin (or any other directory in PATH). symlinks could be either way (meaning that actual file may reside in usercmds or in bin directory). I kind of fix it, but is there something else that needs to be set up so I don’t have to create symlinks?

                  Bakha

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