Weird TCL Issue

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf Weird TCL Issue

  • Creator
    Topic
  • #52334
    Jerry Tilsley
    Participant

      All,

      I have a very weird issue with TCL.  If at the command prompt I use HCITCL and parse a file and split it based on r it returns 3000+ items in the list which is correct.  But if I use the exact same commands in a TPS the list only contains 744 items.  I have the thread that pulls in the file setup as type “single”.  What is going on here?

      Thanks,

      Jerry

    Viewing 9 reply threads
    • Author
      Replies
      • #73838
        David Barr
        Participant

          Can you put in some “echo” statements to print out each item separately? Then you can compare the output of the items that your TPS proc is seeing with the items that you are getting from your command line processing.

        • #73839
          Jerry Tilsley
          Participant

            I tried that, but nothing is ever outputted.  I have about 50 or 60 procs I have written and tested, but this one just seems to hang.  I can see the hcitpstest process launch in Linux and it takes 100% of 1 of the 4 CPU’s.  It has ran for as long as 20+ minutes without completing and the data file is only 3700 lines long.  In the command window manually running these commands through hcitcl all works fine.  This is the only proc doing this.  I have even removed most code except for an echo statement, but it does the same thing.  How can I clean up the process?

          • #73840
            David Barr
            Participant

              Two suggestions.

              1) Add more echo statements. If necessary, put an echo statement before every line of code so that you can see which line of code is causing the script to hang.

              2) Copy the command that the testing tool is running (it is labeled as “preview command to issue” in the GUI), and run the command from the command line.  Sometimes there are weird interactions with the host server when you run through the GUI, and this can eliminate that as a possibility.

            • #73841
              Jerry Tilsley
              Participant

                Here is the command generated by the GUI.  If I type this into the command line of the server it to does not reply, just sits there skyrocketing the CPU.

                Code:


                hcitpstest -r run -a -x ASCII -L -f eof -S -c sms_ib_data -e “hcitpstestshowdisp ” /HIC/qdx/cis5.8/spools/infogen/GAIMP2.txt “tps_api_emp_xlate”

              • #73842
                David Barr
                Participant

                  This probably isn’t the problem but I think that “hcitpstestshowdisp” should be “hcitpstestshowbydisp”.

                  Is tps_api_emp_xlate really a TPS proc? Did you use the “TPS” template when you created it or the “XLTP” template? And the first line of the proc is an echo statement that isn’t showing up when you run the hcitpstest command? What happens if you use a smaller data file to test?

                • #73843
                  Jerry Tilsley
                  Participant

                    Ok, here is what I found.  If the data file has more than 1319 rows it chokes and hangs.  If it has less then it processes just fine.  What can I do to help this?

                    Thanks,

                    Jerry

                  • #73844
                    Scott Folley
                    Participant

                      Are these fixed length records?

                    • #73845
                      Jerry Tilsley
                      Participant

                        No, they are variable.

                      • #73846
                        Scott Folley
                        Participant

                          I am thinking that you are hitting a maximum list length within the TCL interpreter.

                        • #73847
                          Jerry Tilsley
                          Participant

                            I found figured out that what ever limit I am hitting occurs only inside the TPS test tool not from the threads themselves.  I have things going now, I just have to remember not to try and test the script with a file too large.

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