Originally posted by Alan James
Originally posted by Gary Atkinson
Originally posted by Michael Hertel
if (/^S+s+(S+)s+ups+S+.*$/)
$conn = "emcare_adt";$proc = "sbmc_adt1";local($filepath) = "";$rootpath = $ENV{'HCIROOT'};$site = $ENV{'HCISITE'};$procpath = $rootpath . "/" . $site . "/exec/processes/" . $proc;print "procpath = '" . $procpath . "'n"; open(CONNDUMP,"hciconndump -v $conn | grep " out: " |") || warn "Cannot access hciconndump"; while (<CONNDUMP>) { chop; #; check OB flag $isOutbound = 0; if (m/s+out:s+Yess+(S+)s+File: (.*)/) { ($cycletype,$type,$stype,$saveFile) = ('out','Outbound','OB',$2);print "match foundn"; local($filepath) = $procpath . "/" . $saveFile . ".idx";print $cycletype . ", " . $type . ", " . $stype . ", " . $saveFile . "n";print "filepath = '$filepath'n"; #; cycle only if file is not empty if ( -s $filepath ) {print "file exists and is not emptyn"; $isOutbound = 1; &manageSaveFiles(0);# before cycle &cycleSavemsgs if -s $filepath; &manageSaveFiles(1);# after cycle } else {print "file does not exist or is emptyn"; } }}print "conndump completen";print "isOutbound = " . $isOutbound;