- Timestamp:
- Sep 7, 2010, 9:16:10 AM (16 years ago)
- Location:
- branches/eam_branches/ipp-20100823
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
tools/czartool/Pantasks.pm (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20100823
-
branches/eam_branches/ipp-20100823/tools/czartool/Pantasks.pm
r28920 r29124 73 73 } 74 74 return 1; 75 } 76 77 ########################################################################### 78 # 79 # Gets nightlyscience status for today 80 # 81 ########################################################################### 82 sub getNightlyScienceStatus { 83 my ($self, $status) = @_; 84 85 my @labels; 86 87 my ($day, $month, $year) = (localtime)[3,4,5]; 88 my $today = sprintf("%04d-%02d-%02d", $year+1900, $month+1, $day); 89 90 my @cmdOut = `echo "ns.show.dates;quit" | pantasks_client -c ~ipp/stdscience/ptolemy.rc 2>&1`; 91 my $line; 92 foreach $line (@cmdOut) { 93 94 chomp($line); 95 if (!$self->outputOk($line)) {return 0;} 96 if ($line =~ m/$today\s+(.+)/) { 97 ${$status} = $1; 98 return 1; 99 } 100 } 101 102 return 0; 75 103 } 76 104
Note:
See TracChangeset
for help on using the changeset viewer.
