Robert Kersemakers wrote:
Another thing to try: first switch to user ‘hci’ so all variables are set correctly and then execute the scripts/commands.
11 10 10 * * * su hci -c
I did try that and same result. I was able to get it to work but I had to include everything in my script. Here is what I had to do:
#!/bin/ksh
# bounce_isys.sh
# This executable will set correct environment variables
# and run the commands to bounce the isys_a_ob and isys_r_ib
# threads.
# ** Edit these env variables to reflect the actual root & site **
export SITE=”prod”
export ROOT=”/quovadx/qdx5.6/integrator”
# Setup userid environment
export FPATH=$FPATH:/quovadx/qdx5.6/integrator/kshlib
export PATH=$PATH:$ROOT/bin
export QUOVADX_INSTALL_DIR=”/quovadx/qdx5.6″
export CL_INSTALL_DIR=”/quovadx/qdx5.6″
eval ‘/quovadx/qdx5.6/integrator/sbin/hcisetenv -root ksh $ROOT $SITE’
# Set the root directory and site
setroot $ROOT ;
setsite $SITE ;
# Run the commands to bounce the threads
hcicmd -p ISYS -c ‘isys_a_ob pstop’;hcicmd -p ISYS -c ‘isys_r_ib pstop’
hcicmd -p ISYS -c ‘isys_a_ob pstart’;hcicmd -p ISYS -c ‘isys_r_ib pstart’