Changeset 19425 for trunk/DataCheck
- Timestamp:
- 01/11/19 23:38:53 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/DataCheck/Monitoring/CheckSwiftSchedule.sh
r19400 r19425 54 54 schedulefile2=$schedulepath/swift.schedule.formated 55 55 schedulefile3=$schedulepath/swift.schedule.txt 56 schedulefile4=$schedulepath/swift.schedule-cut.txt 56 57 57 58 # overwrite already existing file … … 98 99 for (( i=0; i<${#sources[@]}; i++ )) 99 100 do 100 grep "${sources[$i]}" $schedulefile2 >>$schedulefile3 101 sourceline=`grep "${sources[$i]}" $schedulefile2` 102 if [ "$sourceline" = "" ] 103 then 104 continue 105 fi 106 dat=`echo $sourceline | awk '{ print $1 }' | sed -e 's/-/\//g'` 107 #echo $dat 108 hour=`echo $sourceline | awk '{ print $2 }' | awk -F':' '{ print $1 }'` 109 if [ $hour -gt 12 ] && [ "$dat" != "$date" ] 110 then 111 continue 112 fi 113 if [ $hour -lt 12 ] && [ "$dat" == "$date" ] 114 then 115 continue 116 fi 117 #echo "--"$hour"--" 118 echo $sourceline >>$schedulefile3 101 119 done 102 120 … … 106 124 then 107 125 echo -e "\nNone of the sources was found in the Swift schedule." >> $schedulefile3 126 else 127 echo -n $date": " && cat $schedulefile3 | grep -v Searched 108 128 fi 109 129
Note:
See TracChangeset
for help on using the changeset viewer.