IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 40085 for trunk/ippMonitor


Ignore:
Timestamp:
Jul 11, 2017, 12:22:15 PM (9 years ago)
Author:
eugene
Message:

do not break out of the label check loop on the show.labels line

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippMonitor/czartool/czartool/Pantasks.pm

    r40055 r40085  
    7171
    7272    if (
    73             $output =~ m/.*show\.labels.*/i ||
    7473            $output =~ m/.*Connection reset by peer.*/i ||
    7574            $output =~ m/.*server is busy.*/i ) {
     
    120119    my @labels;
    121120
    122     print "stdscience : $ipphome/stdscience/ptolemy.rc\n";
     121    # print "stdscience : $ipphome/$server/ptolemy.rc\n";
    123122    my @cmdOut = `echo "show.labels;quit" | pantasks_client -c $ipphome/$server/ptolemy.rc 2>&1`;
    124123    my $line;
    125124    my $passedHeader=0;
    126125    foreach $line (@cmdOut) {
    127         print "labels: $line";
     126        # print "labels: $line";
    128127        chomp($line);
    129128        if (!$self->outputOk($line)) {return \@labels;}
     
    135134        }
    136135
     136        # one line has the show.labels command; skip it
     137        if ($line =~ m/.*show\.labels.*/i) { next; }
     138
    137139        if ($passedHeader && length($line) > 0){push(@labels, $line);}
    138140    }
Note: See TracChangeset for help on using the changeset viewer.