Changeset 28825
- Timestamp:
- Aug 2, 2010, 11:06:32 AM (16 years ago)
- Location:
- trunk/tools
- Files:
-
- 2 edited
-
czartool.pl (modified) (2 diffs)
-
czartool/Pantasks.pm (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/czartool.pl
r28704 r28825 65 65 if ($key eq "s") {checkServers();} 66 66 elsif ($key eq "l") {checkAllLabels("new");} 67 elsif ($key eq "u") { serverStatus("stdscience");}67 elsif ($key eq "u") {$pantasks->getServerCurrentStatus("stdscience");} 68 68 elsif ($key =~ m/[0-9]/) {my $key2=getc; checkOneLabel($stdscienceLabels[($key.$key2)-1]);} 69 69 printInstructions(); … … 99 99 100 100 return \@diff; 101 }102 103 ###########################################################################104 #105 # Prints the status of a given pantasks server106 #107 ###########################################################################108 sub serverStatus {109 my ($server) = @_;110 111 my @cmdOut = `echo "status;quit" | pantasks_client -c ~ipp/$server/ptolemy.rc 2>&1`;112 my $line;113 foreach $line (@cmdOut) {114 115 chomp($line);116 117 print "$line\n";118 }119 101 } 120 102 -
trunk/tools/czartool/Pantasks.pm
r28785 r28825 113 113 if ($line =~ m/Scheduler is running/) {${$running} = 1; ${$alive}=1;last;} 114 114 if ($line =~ m/Task Status/) {last;} 115 116 115 } 117 116 } … … 125 124 my ($self, $server) = @_; 126 125 127 128 126 my @cmdOut = `echo "status;quit" | pantasks_client -c ~ipp/$server/ptolemy.rc 2>&1`; 129 127 my $line; 130 128 my $passedHeader=0; 129 print "\n"; 131 130 foreach $line (@cmdOut) { 132 131 133 chomp($line);134 132 if ($line =~ m/.*Task Status.*/) {$passedHeader=1;next;} 135 if ($passedHeader){print "$line <br>";}133 if ($passedHeader){print "$line";} 136 134 } 137 135 }
Note:
See TracChangeset
for help on using the changeset viewer.
