This works on aix
0,15,30,45 * * * * setroot && $HCIROOT/usercmds/intmon.sh 2>&1
Although I’ve tried a million things, this is what i currently have on RedHat
SHELL=/bin/ksh
PATH=/qdxiprod/cis6.1/integrator/physician1/bin:/qdxiprod/cis6.1/integrator/physician1/scripts:/qdxiprod/cis6.1/integrator/bin:/qdxiprod/cis6.1/integrator/contrib:/qdxiprod/cis6.1/integrator/sbin:/qdxiprod/cis6.1/integrator/dbms/bin:/qdxiprod/cis6.1/integrator/tcl/bin:/qdxiprod/cis6.1/integrator/clgui/bin:/qdxiprod/cis6.1/integrator/clgui/java/bin:/qdxiprod/cis6.1/integrator/usercmds:/usr/bin:/etc:/usr/sbin:/usr/ucb:/home/hci/bin:/usr/bin/X11:/sbin:.:/usr/local/bin:/usr/local/scripts:/bin:/home/hci/bin
LIBPATH=/qdxiprod/cis6.1/integrator/clgui/java/bin:/qdxiprod/cis6.1/integrator/clgui/java/bin/classic:/qdxiprod/cis6.1/integrator/lib:/qdxiprod/cis6.1/integrator/bin:/qdxiprod/cis6.1/integrator/tcl/lib:/qdxiprod/cis6.1/integrator/dbms/lib:/qdxiprod/cis6.1/integrator/lib/Connect7.1/lib:/usr/lib:/lib:/shlib:/usr/shlib
CL_INSTALL_DIR=/qdxiprod/cis6.1
ROOT=$CL_INSTALL_DIR/integrator
MAILTO=thorst2@wellspan.org
HCIROOT=/qdxiprod/cis6.1/integrator
KSHLIB=/qdxiprod/cis6.1/integrator/kshlib
HCIVERSION=6.1
* * * * * eval $HCIROOT/sbin/hcisetenv -root ksh $HCIROOT physician1 && $KSHLIB/setroot $HCIROOT && $KSHLIB/setsite physician1 && showroot
As you can see, our default is bash, and i switch that to ksh.
I tried to mimic the path that is there when i log in as hci
Set the mailto so that i receive the logs via email
When i run this i get the following:
unset HCIREMOTE;
unset HCIMASTERSITE;
HCIROOT=’/qdxiprod/cis6.1/integrator’; export HCIROOT; LD_LIBRARY_PATH=’/qdxiprod/cis6.1/integrator/clgui/java/lib/i386:/qdxiprod/cis6.1/integrator/clgui/java/lib/i386/server:/qdxiprod/cis6.1/integrator/lib:/qdxiprod/cis6.1/integrator/bin:/qdxiprod/cis6.1/integrator/tcl/lib:/qdxiprod/cis6.1/integrator/dbms/lib:/qdxiprod/cis6.1/integrator/lib/Connect7.1.2/lib:/usr/lib:/lib:/shlib:/usr/shlib’; export LD_LIBRARY_PATH; HCISITEDIR=’/qdxiprod/cis6.1/integrator/physician1′; export HCISITEDIR; MANPATH=’/qdxiprod/cis6.1/integrator/man:/qdxiprod/cis6.1/integrator/tcl/man:/qdxiprod/cis6.1/integrator/dbms/man::’; export MANPATH; DBDPATH=’/qdxiprod/cis6.1/integrator/physician1/exec/databases’; export DBDPATH; HCISITE=’physician1′; export HCISITE; HCILICFILE=’/qdxiprod/cis6.1/integrator/vers/license.dat’; export HCILICFILE; QUOVADX_INSTALL_DIR=’/qdxiprod/cis6.1′; export QUOVADX_INSTALL_DIR; TCL_LIBRARY=’/qdxiprod/cis6.1/integrator/tcl/lib/tcl8.5′; export TCL_LIBRARY; HCIVERSION=’6.1′; export HCIVERSION; unset HCIMASTERSITEDIR; DBFPATH=’/qdxiprod/cis6.1/integrator/physician1/exec/databases’; export DBFPATH; DEV_NULL=’/dev/null’; export DEV_NULL; ODBCINI=’/qdxiprod/cis6.1/integrator/lib/Connect7.1.2/odbc.ini’; export ODBCINI; DBTMP=’/qdxiprod/cis6.1/integrator/physician1/exec/databases’; export DBTMP; LOCKMGR=’lm_cis6.1_physician1′; export LOCKMGR; PATH=’/qdxiprod/cis6.1/integrator/physician1/bin:/qdxiprod/cis6.1/integrator/physician1/scripts:/qdxiprod/cis6.1/integrator/bin:/qdxiprod/cis6.1/integrator/contrib:/qdxiprod/cis6.1/integrator/sbin:/qdxiprod/cis6.1/integrator/dbms/bin:/qdxiprod/cis6.1/integrator/tcl/bin:/qdxiprod/cis6.1/integrator/clgui/bin:/qdxiprod/cis6.1/integrator/clgui/java/bin:/qdxiprod/cis6.1/integrator/usercmds:/usr/bin:/etc:/usr/sbin:/usr/ucb:/home/hci/bin:/usr/bin/X11:/sbin:.:/usr/local/bin:/usr/local/scripts:/bin:/home/hci/bin’; export PATH; CLASSPATH=’/qdxiprod/cis6.1/integrator/physician1/java_uccs:.:/qdxiprod/cis6.1/integrator/clgui/lib/cljava.jar:/qdxiprod/cis6.1/integrator/java_uccs:/qdxiprod/cis6.1/integrator/lib/java/DBLookup.jar:’; export CLASSPATH; TK_LIBRARY=’/qdxiprod/cis6.1/integrator/tcl/lib/tk8.5′; export TK_LIBRARY; TCLX_LIBRARY=’/qdxiprod/cis6.1/integrator/tcl/lib/tclx8.4′; export TCLX_LIBRARY; DBTAF=’/qdxiprod/cis6.1/integrator/physician1/exec/databases/rdm.taf’; export DBTAF; HCI root is /qdxiprod/cis6.1/integrator No HCI site
The key is at the end
HCI root is /qdxiprod/cis6.1/integrator No HCI site
Can anyone educate me, I know it must be simpler than all this.