- This topic has 6 replies, 7 voices, and was last updated 13 years, 7 months ago by .
-
Topic
-
Hello, We have this script running for years… just found that one outbound thread can not be processed by this script recently.. .Basically this script will check the very connection … can anyone tell me what does highlighted the statement mean? sub ckconnStatus {
#; check connection status
open(NETCONFIG,”grep ‘^protocol’ $netconfig |”) || return 0;
@NETCONFIG =
; close(NETCONFIG);
foreach $proc (@procs) {
open(CONNSTATUS,”hciconnstatus |grep ‘^$proc ‘ |”)
|| die “Cannot access hciconnstatus”;
$procpath = $rootpath . “/” . $site . “/exec/processes/” . $proc;
while (
) { chop;
if (/^S+s+(S+)s+ups+S+.*$/) {($conn) = $1; foreach (@NETCONFIG) {
$NCline = $_;
chop($NCline);
if ($NCline =~ /^protocol ($connS*).*$/) ($conn) = $1;
printf(“nProcessingn Root: %s, site: %s, proc: %s, thread: %sn”,$rootpath,$site,$proc,$conn);
last;
}
}
&ckSavemsgs;
}
}
close(CONNSTATUS);
}
return 1;
}
Thanks
- The forum ‘Cloverleaf’ is closed to new topics and replies.