problems running hcidbdump from a perl script

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf problems running hcidbdump from a perl script

Viewing 3 reply threads
  • Author
    Replies
    • #76319
      David Barr
      Participant

        Try setting your LD_LIBRARY_PATH. It needs to include $HCIROOT/bin.

      • #76320
        Joseph Paquette
        Participant

          Hello,

          I tried adding to the line,  now looks like this

          $ENV{‘LD_LIBRARY_PATH’}=”$qdx_root/bin:$qdx_root/lib:$qdx_root/tcl/lib”;

          Error changed to

          Unable to initialize DBI, err = 2

          am i missing any other folders that need to be in the path??

          Thanks for taking a look.

          Joe

        • #76321
          David Barr
          Participant

            I think your environment is probably still messed up. I would call your perl script from a shell script and have the shell script call setroot and setsite before the perl script. We’ve used something like this to run scripts from cron:

            Code:

            #!/bin/bash
            export CL_INSTALL_DIR=/quovadx/cis5.8
            export HCIVERSION=5.8
            export HCIROOT=$CL_INSTALL_DIR/integrator
            . $HCIROOT/kshlib/setroot
            . $HCIROOT/kshlib/setsite
            setroot $HCIROOT
            setsite mysite
            /path/to/myscript.pl

          • #76322

            Here’s an example of how to setup the Cloverleaf environment in perl.

            Code:

            #!/usr/bin/perl -lw

            $siteName = “site_max”;
            eval `/cloverleaf/qdx5.8/integrator/sbin/hcisetenv -root perl /cloverleaf/qdx5.8/integrator $siteName`;
            print `showroot`;
            print $ENV{HCIROOT};
            print $ENV{HCISITE};
            print `showroot`;

            -- Max Drown (Infor)

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