proc echoprice { args } {
set folder “/opt/healthvision/cis5.8/integrator/summit_health/exec/processes/medi_omni1/echo-out”
set msgs [glob -nocomplain -directory $folder Item.Dat]
set fillst [split $msgs ” “]
set len [llength $fillst]
foreach file $fillst {
echo “file is $file”
if {($file eq “/opt/healthvision/cis5.8/integrator/summit_health/exec/processes/medi_omni1/echo-out/Item.Dat”)} {
echo “filename matches Item.Dat”
#I WANT TO “CONTINUE” THE MESSAGE
} else {
echo “filename $file does not match Item.Dat”
#I WANT TO “KILL” THE MESSAGE
}
}
}