In the past, I have used a cron and tcl to generate “heart beat” messages.
Cron
00,05,10,15,20,25,30,35,40,45,50,55 * * * * . ~/.profile.cron;/hci/bin/heartbeat.tcl testbno bno31 bno31bblab_out heartbeat_bb.hl7 >
/dev/null 2>&1
~/.profile.cron
CL_INSTALL_DIR=/hci/quovadx/qdx5.6
PATH=/usr/bin:/etc:/usr/sbin:/usr/ucb:$HOME/bin:/usr/bin/X11:/sbin:.:/usr/local/bin:/usr/local/lib:/usr/local/scripts:${CL_INSTALL_DIR}/integrator/sbi
export PATH
setroot
/hci/bin/heartbeat.tcl
#!/hci/quovadx/qdx5.6/integrator/bin/tcl
global HciRoot
# Get args
set site [lindex $argv 0]
set process [lindex $argv 1]
set thread [lindex $argv 2]
set heartbeat [lindex $argv 3]
# Set up the environment for Cloverleaf commands
eval [exec $HciRoot/sbin/hcisetenv -root tcl $HciRoot $site]
# Send the heartbeat
catch {exec hcicmd -p $process [code]#!/hci/quovadx/qdx5.6/integrator/bin/tcl
global HciRoot
# Get args
set site [lindex $argv 0]
set process [lindex $argv 1]
set thread [lindex $argv 2]
set heartbeat [lindex $argv 3]
# Set up the environment for Cloverleaf commands
eval [exec $HciRoot/sbin/hcisetenv -root tcl $HciRoot $site]
# Send the heartbeat
catch {exec hcicmd -p $process