Changeset 19519
- Timestamp:
- 05/28/19 11:36:23 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/DataCheck/Monitoring/CheckSwiftSchedule.sh
r19499 r19519 39 39 function getschedule() 40 40 { 41 text= `links -width 300 -ssl.certificates 0 -dump https://www.swift.psu.edu/operations/obsSchedule.php?d=$1 | grep $1'\|was not found' >> $schedulefile `41 text=$( { links -width 300 -ssl.certificates 0 -dump https://www.swift.psu.edu/operations/obsSchedule.php?d=$1 | grep $1'\|was not found\|Connection' >> $schedulefile ; } 2>&1 ) 42 42 #text=`links -width 300 -ssl.certificates 0 -dump https://www.swift.psu.edu/operations/obsSchedule.php?d=$1 | grep $1 >> $schedulefile ` 43 43 check1=$? 44 #echo "check "$check145 44 if [ "$text" != "" ] || [ $check1 -gt 0 ] 46 45 then … … 48 47 printprocesslog "WARN could not get Swift schedule ("$text", return code: "$check1")" 49 48 echo "WARN could not get Swift schedule ("$text", return code: "$check1")" 50 if [ "$text" = "Connection timed out" ] 49 if [ "$text" = "Connection timed out" ] || [ "$text" = "Connection refused" ] 51 50 then 52 51 printprocesslog "WARN could not connect to https://www.swift.psu.edu/operations/obsSchedule.php?d="$1 … … 125 124 # 1: differences found 126 125 # >1: error 126 upd="" 127 127 if [ -e $schedulefile2old ] 128 128 then 129 if diff $schedulefile2 $schedulefile2old >/dev/null 129 diff $schedulefile2 $schedulefile2old >/dev/null 130 checkdiff=$? 131 if [ $checkdiff -eq 0 ] 130 132 then 131 133 printprocesslog "INFO Schedule did not change."
Note:
See TracChangeset
for help on using the changeset viewer.