2022-11-05 08:18:34
This commit is contained in:
@@ -179,17 +179,18 @@ fi
|
|||||||
|
|
||||||
echo "\nfinding files in '$NEWPATH*.gz'"
|
echo "\nfinding files in '$NEWPATH*.gz'"
|
||||||
for FILE in $NEWPATH*.gz; do
|
for FILE in $NEWPATH*.gz; do
|
||||||
|
STARTLOOP=$(date +%s)
|
||||||
|
FILE=$(basename $FILE)
|
||||||
|
echo -e "\n$(date +%F\ %T) | $FILE:"
|
||||||
|
|
||||||
if [[ "${SETPOSDB}" =~ ${FILE%%.*} ]]; then echo -e "\t-- recognized $FILE for master position and log file"
|
if [[ "${SETPOSDB}" =~ ${FILE%%.*} ]]; then echo -e "\t-- recognized $FILE for master position and log file"
|
||||||
SETPOSFILE=$(realpath $FILE)
|
SETPOSFILE=$(realpath $FILE)
|
||||||
SETPOSSTMT=$(zcat $SETPOSFILE | head -40 | grep MASTER | sed 's/-- //')
|
SETPOSSTMT=$(zcat $SETPOSFILE | head -40 | grep MASTER | sed 's/-- //')
|
||||||
echo -e "\n$SETPOSSTMT\n"
|
echo -e "\n$SETPOSSTMT\n"
|
||||||
exit
|
exit 2
|
||||||
fi
|
fi
|
||||||
|
|
||||||
FILE=$(basename $FILE)
|
exit 1
|
||||||
STARTLOOP=$(date +%s)
|
|
||||||
echo -e "\n$(date +%F\ %T) | $FILE:"
|
|
||||||
|
|
||||||
|
|
||||||
if [[ "${SKIPDBS[*]}" =~ ${FILE%%.*} ]]; then echo -e "\t-- skipping $FILE";continue; fi;
|
if [[ "${SKIPDBS[*]}" =~ ${FILE%%.*} ]]; then echo -e "\t-- skipping $FILE";continue; fi;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user