problems running hcidbdump from a perl script Homepage › Clovertech Forums › Read Only Archives › Cloverleaf › Cloverleaf › problems running hcidbdump from a perl script Search for: This topic has 4 replies, 3 voices, and was last updated 12 years, 6 months ago by Max Drown (Infor). Creator Topic April 5, 2012 at 10:08 pm #53036 Joseph PaquetteParticipant Hello, Creator Topic Viewing 3 reply threads Author Replies April 5, 2012 at 11:02 pm #76319 David BarrParticipant Try setting your LD_LIBRARY_PATH. It needs to include $HCIROOT/bin. April 6, 2012 at 12:23 am #76320 Joseph PaquetteParticipant 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 April 6, 2012 at 8:52 pm #76321 David BarrParticipant 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 April 9, 2012 at 3:06 pm #76322 Max Drown (Infor)Keymaster 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) Author Replies Viewing 3 reply threads The forum ‘Cloverleaf’ is closed to new topics and replies.