Homepage › Clovertech Forums › Read Only Archives › Cloverleaf › Cloverleaf › ftp error – expect load error
- This topic has 9 replies, 4 voices, and was last updated 15 years, 5 months ago by Richard Hart.
October 2, 2007 at 2:30 pm #49555
We have just migrated into 5.5 and production. However, we have just encountered a recent problem after a cron executes a script to ftp a file over to a server. The error is as follows:
0509-036 Cannot load program /hci/quovadx/qdx5.5/integrator/tcl/bin/expe
ct because of the following errors:
0509-150 Dependent module libtcl8.4.so could not be loaded.
0509-022 Cannot load module libtcl8.4.so.
Any advise would be most helpful, as it seems that none of the enviromental variables are being set.
October 2, 2007 at 4:47 pm #62460Tom RiouxParticipant
Did you look in the /hci/quovadx/qdx5.5/integrator/tcl/lib directory to make sure the libtcl8.4.so module is in there?
October 2, 2007 at 4:55 pm #62461
Yes we did. Thank you.
October 2, 2007 at 5:56 pm #62462
Check your cron job because it probably needs to be modified to point to 5.5 instead of let’s say 5.2.
For example here is a typical cron entry for cloverleaf 5.2Code:
30 03 * * 1-6 /bin/ksh -c ‘eval . ~/.profile.cron /quovadx/qdx5.2/integrator prod_batch_005; $HCISITEDIR/scripts/_005/iftp_005_cron_entry.ksh’
but if I upgrade to cloverleaf 5.5 then I would expect I would need to change the qdx5.2 part of the cron entry to be qdx5.5 as followsCode:
30 03 * * 1-6 /bin/ksh -c ‘eval . ~/.profile.cron /quovadx/qdx5.5/integrator prod_batch_005; $HCISITEDIR/scripts/_005/iftp_005_cron_entry.ksh’
October 3, 2007 at 2:19 pm #62463
Thank you Russ. We eventually got this to work. Our Unix Network Admin, forced a link at startup to point to the path that it was looking for; because when the script ran from the CRON none of the environmental variables were being set.
Thank you for your tip.
October 4, 2007 at 2:11 am #62464
Here is a URL that contains posts I made describing in more detail about setting up the cron envirnment before running your script to do the work:
http://clovertech.infor.com/viewtopic.php?t=1867http://clovertech.infor.com/viewtopic.php?t=1867 ” class=”bbcode_url”>
October 4, 2007 at 4:41 pm #62465
Thanks again. Upon looking at that post / link you suggested, I have a couple of questions. The .profile file we have in the /home/hci directory is the file in question, correct? Do we modify this file or create a another file as stated in the comments section of the .profile file, which should be either .profile.local.start or .profile.local.end ? OR now if I think more clearly, leave teh .profile alone and create a new file .profile.cron and then reference this in the crontab, is this correct?
Thank you, Russ.
October 4, 2007 at 9:25 pm #62466
Sounds like your figured it out when you asked,
OR now if I think more clearly, leave the .profile alone and create a new file .profile.cron and then reference this in the crontab, is this correct?
Yes that is what I did because the /home/hci/.profile is good for an interactive login session, whereas my /home/hci/.profile.cron is taylor made for running scheduled jobs from cron.
October 4, 2007 at 9:38 pm #62467
By the way I do use these files for normal hci interactive session which get called by /home/hci/.profile
here is what I have in my /home/hci/.profile.local.start to give you some ideas:Code:
# define the functions and environment variables
here is what I have in my /home/hci/.profile.local.end to give you some ideas:Code:
# Make sure the terminal is correct
if [ $DISPLAY = “” ]; then
if [ $DISPLAY = “pcis114.mdacc.tmc.edu:0” ]; then
if [ $DISPLAY = “mdahub3.mdacc.tmc.edu:0” ]; then
# Make sure our root and site are set
# and check if any alerts are still turned off
if [ -a /quovadx/qdx5.2/integrator/sbin/hcisetenv ]; then
setroot $ROOT $SITE
# check_alert_off.ksh p_golive_maxsys
# set any extra paths that do not ordinarly get defined
# export PATH=$PATH:$HCIROOT/scripts
# Specifiy the HCI GUI tools to use the vi editor in a xterm window
export VISUAL=’xterm -fn 10×20 -fg yellow -bg black -e /usr/bin/vi’
# Make sure the aliases are set
# set MDA environment variables
# set cursor recall to vi edit mode
set -o vi
# set prompt to the display the directory you are in
PS1=’(’`uname -n`’:$LOGNAME) $PWD > ‘
# make sure the window manager keyboard focus for hci user is set correctly
# sometimes people change it when they exit their sessions
# if [[ “`whoami`” = “hci” ]]; then
# cp /home/hci/.dt/dt.resources_hci /home/hci/.dt/sessions/current/dt.resources
October 5, 2007 at 12:51 am #62468Richard HartParticipant
We use a profile and source this at the start of our cron scripts. Our FTP has a cron entry of
# Central Waitlist Bureau – ftp TOPAS data to CWB server
0 0-23 * * * /hci/InfoHEALTH/bin/CwbFtp.sh > /tmp/CwbFtp.log 2>&1
and the first line of the script is
This is also sourced in the user ‘.profiles’ as we peform almost all of our work on the AIX server.
The profile is a bit more complex as I have not updated since it was required for both Cloverleaf 3.5.5 and 5.2.1.
Note that we have our own ksh environment (FPATH) this lets us call the ‘normal’ scripts and also set the prompt/PATH so that our ‘main’ Cloverleaf path (LOCALBIN) is always available.
for myProfilePath in `ls -d /apps/qdxi*/qdx* 2>/dev/null` `ls -d /apps/aise*/qdx* 2>/dev/null`
if -d $myProfilePath/integrator
- The forum ‘Cloverleaf’ is closed to new topics and replies.