I am trying to call hciprocstatus in an alert using a script. Below I believe I am setting up the env variables correctly.
#!/usr/bin/bash
#set hciRoot /hci/cis19.1/integrator
eval $HCIROOT/sbin/hcisetenv -root ksh > /dev/null
site=$1
process=$2
site=basename $site
#echo $site
eval $HCIROOT/sbin/hcisetenv -site ksh $site > /dev/null
showroot
/hci/cis19.1/integrator/scripts/alert_scripts/start_process.tcl $site $process
start of proc called. I get this in the log file: Unable to contact hcimonitord: timed out
start_process.tcl
#!/usr/bin/env hcitcl
set site [lindex $argv 0]
set process [lindex $argv 1]
append filename_cmd3 $process _cmd_output3.txt
hciprocstatus -p %P -i > /hci/cis19.1/integrator/scripts/alert_scripts/%P_cmd_output3.txt
to test it I have an alert that is set up as an exec that does return the output
hciprocstatus -p %P -i > /hci/cis19.1/integrator/scripts/alert_scripts/%P_cmd_output.txt
any ideas?