Running TCL proc from inside a UNIX script

Clovertech Forums Read Only Archives Cloverleaf Operating Systems Running TCL proc from inside a UNIX script

  • Creator
    Topic
  • #48227
    Anonymous
    Participant

      Hi All and Happy Holidays

      I hope this is where this query should be posted.

      Here is the issue – –

      I have a UNIX script that does several things to a file. As part of the script I execute a TCL proc that reads the file and creates header and trailer files with record counts.  When I run the script manually from my HCI sign-on, it works great. When I run the same script using a cron job, I get the following error messages at the point where the TCL proc would run:

      0509-036 Cannot load program hcitcl because of the following errors:

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

      0509-022 Cannot load module libtcl8.3.so.

      0509-026 System error: a file or directory in the path name does not exist.

      After reading the error mesages, I found where the libtcl8.3.so was located and put the directory into the $PATH variable. The same errors still came out.

      I hope someone can point me in the right direction as to what needs to be done to get this to work as a cron job.

      I will be forever in your debt.

      Thanks,

    Viewing 2 reply threads
    • Author
      Replies
      • #58075
        Dave Zibble
        Participant

          #!/usr/bin/ksh

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

          forever is long time!

        • #58076
          Steve Carter
          Participant

            Late reply, but I’m just browsing through…

            If you’re running the script via hci’s cron, and you just need to setup the enviroment for tcl, this will work:

            * * * * * (setroot ; scriptName.sh) >/dev/null 2>&1

            Russell W Bucholz wrote:

            Hi All and Happy Holidays

            I hope this is where this query should be posted.

            Here is the issue – –

            I have a UNIX script that does several things to a file. As part of the script I execute a TCL proc that reads the file and creates header and trailer files with record counts.

          • #58077
            Richard Hart
            Participant

              We use

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