#!/hci/quovadx/qdx5.2/integrator/bin/tcl# showroot.tclglobal envset hciRoot [lindex $argv 0]set hciSite [lindex $argv 1]catch { exec /hci/bin/hcisetenv -root tcl $hciRoot $hciSite } catchReturnset hciDir $env(HCISITEDIR)catch { exec showroot } showrootputs $showroot
tcl showroot.tcl /hci/quovadx/qdx5.2/integrator dev3
HCI site is testbn
HCI site is dev3
global HciRootcatch { exec showroot } showroot; puts $showrootset hciSite [lindex $argv 0]catch { exec /hci/sbin/hcisetenv -root tcl $hciRoot $hciSite } catchReturncatch { exec showroot } showroot; puts $showrooteval [exec $HciRoot/sbin/hcisetenv -root tcl $HciRoot $hciSite]catch { exec showroot } showroot; puts $showroot
HCI root is /hci/quovadx/qdx5.2/integratorHCI site is testbnHCI root is /hci/quovadx/qdx5.2/integratorHCI site is testbnHCI root is /hci/quovadx/qdx5.2/integratorHCI site is dev3
exec(): 0509-036 Cannot load program /hci/quovadx/qdx5.2/integrator/bin/tcl because of the following errors: 0509-150 Dependent module libtcl8.3.so could not be loaded. 0509-022 Cannot load module libtcl8.3.so. 0509-026 System error: A file or directory in the path name does not exist.
Originally posted by Michael Hertel
46 * * * * . ~/.profile.cron;/hci/bin/monitor/db_check.tcl sitebn
QUOVADX_INSTALL_DIR=/hci/quovadx/qdx5.2PATH=/usr/bin:/etc:/usr/sbin:/usr/ucb:$HOME/bin:/usr/bin/X11:/sbin: .:/usr/local/bin:/usr/local/lib:/usr/local/scripts: ${QUOVADX_INSTALL_DIR}/integrator/sbin:export PATHsetroot