execute tcl program in socket

Clovertech Forums Read Only Archives Cloverleaf General execute tcl program in socket

  • Creator
    Topic
  • #48509
    Rich Durkee
    Participant

      Boy I am getting frustrated. Trying to write a simple tcl socket server program in TCL. Whenever my socket client does a puts and gets, I receive an error from the socket server like this:

      0509-036 Cannot load program /qvdx/qdx5.3/integrator/tcl/bin/tcl because of the following errors:        

      0509-150   Dependent module libtcl8.3.so could not be loaded.

      Obviously, the inetd daemon cannot find all the libraries it needs to exec a tcl program, I have tried many things all to no avail. I believe it can be done because I see examples on the internet.

      Any ideas on how to get this to work?

      On the first line of my socket server program I have:

      #! /qvdx/qdx5.3/integrator/bin/tcl

      Rich Durkee

    Viewing 2 reply threads
    • Author
      Replies
      • #58815
        Anonymous
        Participant

          Rich,

          Just a guess…Try evaluating the output from hcisetenv at the beginning of your script.

          eval [exec /qvdx/qdx5.3/integrator/sbin/hcisetenv -root tcl /qvdx/qdx5.3/integrator SiteName]

          Double check the syntax…

          Best regards

          Carlos

        • #58816
          Jonathan Hamilton
          Participant

            Configure inetd to call an executable ksh script instead of your Tcl script.  The ksh script then initializes the environment and calls your Tcl script.

            #!/usr/bin/ksh

            export QUOVADX_INSTALL_DIR=/hci/qdx5.3

            eval `/hci/qdx5.3/integrator/sbin/hcisetenv -root ksh /hci/qdx5.3/integrator prod`

            /hci/qdx5.3/integrator/bin/hcitcl /hci/cswp/src/scooter_server.tcl $*

            Hope that gets it for ya.

            Jonathan

          • #58817
            garry r fisher
            Participant

              Hi,

              I’ve had problems with the Cloverleaf Tcl install trying to run scripts I’d written using a full Tcl install. Although the bulk of the files/libraries are installed some of the specialist one’s appear to be missing. It could be that the low level TCP/IP library is not installed.

              I haven’t tried this so can’t confirm it but if everything else in your script is correct then this is what the error suggests to me.

              Regards

              Garry

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