Changeset 18851
- Timestamp:
- 05/14/17 02:29:35 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/DataCheck/Transfer/CheckTransfer.sh
r18807 r18851 934 934 if [ "$result1" = "0-0000" ] && [ "$result3" = "0010" ] && [ "$result4" = "0000" ] && [ ${archive[0]} -eq $numisdc ] 935 935 then 936 echo " "${fails[0]}" file(s) corrupt (fails folder) , but files are transfered correctly."937 echo " "${fails[0]}" file(s) corrupt (fails folder) , but files are transfered correctly." >> $logfile 2>&1938 echo " "${fails[0]}" file(s) corrupt (fails folder) , but files are transfered correctly." >> $logfile2 2>&1939 echo " TRANSFER is ok. "$date" can be deleted. "936 echo " "${fails[0]}" file(s) corrupt (fails folder) - please check if files are transfered correctly! " 937 echo " "${fails[0]}" file(s) corrupt (fails folder) - please check if files are transfered correctly! " >> $logfile 2>&1 938 echo " "${fails[0]}" file(s) corrupt (fails folder) - please check if files are transfered correctly! " >> $logfile2 2>&1 939 echo " TRANSFER to be checked. "$date" can be deleted only if files in fails folder are fine. " 940 940 echo "" >> $logfile 2>&1 941 echo " TRANSFER is ok. "$date" can be deleted. " >> $logfile 2>&1942 echo " TRANSFER is ok. "$date" can be deleted. " >> $logfile2 2>&1941 echo " TRANSFER to be checked. "$date" can be deleted only if files in fails folder are fine. " >> $logfile 2>&1 942 echo " TRANSFER to be checked.. "$date" can be deleted only if files in fails folder are fine. " >> $logfile2 2>&1 943 943 echo " Details in the logfile "$logfile 944 944 echo "" >> $logfile 2>&1 … … 987 987 if [ ${fails[0]} -gt 0 ] || [ $numisdc -ne $numisdc2 ] 988 988 then 989 echo " INFO there is "${fails[0]}" file in the fails folder. Please check. " 990 echo " INFO there is "${fails[0]}" file in the fails folder. Please check. " >> $logfile 2>&1 991 echo " INFO there is "${fails[0]}" file in the fails folder. Please check. " >> $logfile2 2>&1 989 numdiff=`echo " $numisdc2 - $numisdc " | bc` 990 echo " WARN there is files marked as failed (fails folder: "${fails[0]}", DB: "$numdiff"). Please check. " 991 echo " WARN there is files marked as failed (fails folder: "${fails[0]}", DB: "$numdiff"). Please check. " >> $logfile 2>&1 992 echo " WARN there is files marked as failed (fails folder: "${fails[0]}", DB: "$numdiff"). Please check. " >> $logfile2 2>&1 992 993 fi 993 994 echo "" … … 999 1000 if [ "$sendemail" = "yes" ] 1000 1001 then 1002 echo "" >> $logfile2 2>&1 1003 echo " REMARK: If you took some action to fix a problem and want that a day in checked again, " >> $logfile2 2>&1 1004 echo " please move the logfile to "`dirname $logfile`"CheckTransfer_YYYY-MM-DD.log.cp " >> $logfile2 2>&1 1005 echo " (or *.cp2 if the first does already exist ...) " >> $logfile2 2>&1 1006 echo " Then restart "$0 >> $logfile2 2>&1 1007 echo "" >> $logfile2 2>&1 1008 1001 1009 echo "" 1002 1010 echo "INFO send email with "$logfile2" to shift@fact-project.org " 1003 1011 printprocesslog "INFO send email with "$logfile2" to shift@fact-project.org " 1004 cat $logfile2 | mail -s " testmail for info on deleting data" shift@fact-project.org1012 cat $logfile2 | mail -s "Info for Deleting Data" shift@fact-project.org 1005 1013 fi 1006 1014
Note:
See TracChangeset
for help on using the changeset viewer.