Using SFTP package in tcl, getting SQLite error?

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf Using SFTP package in tcl, getting SQLite error?

  • Creator
    Topic
  • #54880
    Peter Heggie
    Participant

      Is something not installed? This is AIX, with Cloverleaf 6.1. When using SFTP to get or put, the operation works, but we get this error message:

      application-specific initialization failed: can’t find package sqlite3 3.7    

      We do not get this error with 6.0.2.

      Any thoughts?

      Peter Heggie
      PeterHeggie@crouse.org

    Viewing 7 reply threads
    • Author
      Replies
      • #83295

        Peter, please submit a ticket on Infor Xtreme for this issue. And let us know what you find out. 🙂

        -- Max Drown (Infor)

      • #83296
        Peter Heggie
        Participant

          It was my mistake. I thought I ported it to a new server when actually I just copied it. I am executing the ‘native’ SFTP function on AIX, not a tcl package for SFTP. In the first line of the script was a reference to the tcl:

          Quote:

          #!/hci/cis6.0/integrator/bin/hcitcl

          I have both 6.0 and 6.1 installed, which is fine, but earlier in the script I do a setsite to a 6.1 environment, so there was a mismatch in environments when this step executes.

          I changed the tcl reference to point to the 6.1 library and it worked fine.

          Thanks for your review.

          Peter Heggie
          PeterHeggie@crouse.org

        • #83297

          Here’s a good way to make your scripts dynamic instead of hard-coded.

          Code:

          #!/usr/bin/env tcl

          -- Max Drown (Infor)

        • #83298
          Robert Milfajt
          Participant

            Greate point Max!  Charlie showed me that a while back, and I’ve used it ever since!

            Robert Milfajt
            Northwestern Medicine
            Chicago, IL

          • #83299
            Peter Heggie
            Participant

              Does that work if we have both 6.0 and 6.1 versions on the same server?

              Peter Heggie
              PeterHeggie@crouse.org

            • #83300
              Steve Pringle
              Participant

                To ensure you’re using the Cloverleaf tcl you could do this:

                Code:


                #!/usr/bin/env hcitcl

              • #83301

                It will work with any version so long as the correct environment is set (setroot, etc.).

                There is no need to use “hcitcl” anymore. They are exactly the same (tcl and hcitcl). In fact I think one is a symlink to the other (on Unix).

                -- Max Drown (Infor)

              • #83302
                Charlie Bursell
                Participant

                  It will call the Tcl that is in the environment.  Since 6.0 and 6.1 use the same version, it does not matter

                  Max is correct. On Unix hcitcl is a sym link to Tcl.  On Windows they are a duplicate.

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