Commit 1c85f8188a84120bd52201d81b2129e78ce13051
1 parent
4188f35cd8
Exists in
master
update Checktools
Showing 4 changed files with 9 additions and 9 deletions Side-by-side Diff
main_tools/ThirdPass.sh
... | ... | @@ -217,7 +217,7 @@ |
217 | 217 | |
218 | 218 | print_warn "[${BASENAME}] Speeral output error : check $LOGFILE" 2 |
219 | 219 | print_log_file $LOGFILE "WARN : Speeral number of output ERROR $LST/$speaker.lst" |
220 | - ls $RES_DIR/*.seg | grep -e "$speaker" | sed -e "s|$RES_DIR\/||" | sed -e 's/\.seg//' | sort > ${OUTPUT_DIR_BASENAME}/.tmp | |
220 | + ls $RES_DIR/*.seg 2>/dev/null | grep -e "$speaker" | sed -e "s|$RES_DIR\/||" | sed -e 's/\.seg//' | sort > ${OUTPUT_DIR_BASENAME}/.tmp | |
221 | 221 | print_log_file $LOGFILE "Segs (and treil) not done :\n[" |
222 | 222 | diff $LST/$speaker.lst ${OUTPUT_DIR_BASENAME}/.tmp | grep -e "^< " | sed -e "s/< //" >> $LOGFILE |
223 | 223 | print_log_file $LOGFILE "] [$(date +'%d/%m/%y %H:%M:%S')]" |
... | ... | @@ -235,7 +235,7 @@ |
235 | 235 | ## Check missing seg and log it |
236 | 236 | if [ $CHECK -eq 1 ] |
237 | 237 | then |
238 | - ls $RES_DIR/*.treil | sed -e "s|$RES_DIR\/||g" | sed -e 's/\.treil//' | sort > ${OUTPUT_DIR_BASENAME}/.tmp | |
238 | + ls $RES_DIR/*.treil 2>/deV/null | sed -e "s|$RES_DIR\/||g" | sed -e 's/\.treil//' | sort > ${OUTPUT_DIR_BASENAME}/.tmp | |
239 | 239 | todo=$(cat ${PLP_FILE_P1} | wc -l) |
240 | 240 | if [ $todo -eq 0 ]; then todo=1;fi |
241 | 241 | notdone=$(($todo - $(cat ${OUTPUT_DIR_BASENAME}/.tmp | wc -l))) |
tools/scripts/CheckFirstPass.sh
... | ... | @@ -39,7 +39,7 @@ |
39 | 39 | if [ ! -e "$1" ] || [ -z "$1" ]; then return 1; fi |
40 | 40 | if [ ! -e "$2" ] || [ -z "$2" ]; then return 1; fi |
41 | 41 | FILENBLBL=$(cat "$2" | wc -l) |
42 | - FILENBPLP=$(ls "$1" | wc -l) | |
42 | + FILENBPLP=$(ls "$1" 2>/dev/null | wc -l) | |
43 | 43 | if [ $FILENBLBL -ne $FILENBPLP ]; then return 1; fi |
44 | 44 | fi |
45 | 45 | return 0 |
... | ... | @@ -54,8 +54,8 @@ |
54 | 54 | if [ $# -eq 2 ] |
55 | 55 | then |
56 | 56 | if [ ! -e "$1" ] || [ -z "$1" ]; then return 1; fi |
57 | - FILENBSEG=$(ls $2/*.seg | grep -f "$1" | wc -l) | |
58 | - FILENBRES=$(ls $2/*.res | grep -f "$1" | wc -l) | |
57 | + FILENBSEG=$(ls $2/*.seg 2>/dev/null | grep -f "$1" | wc -l) | |
58 | + FILENBRES=$(ls $2/*.res 2>/dev/null | grep -f "$1" | wc -l) | |
59 | 59 | #FILENBPHO=$(ls "$2/*.pho" | grep -f "$1" | wc -l) |
60 | 60 | FILENB=$(cat "$1" | wc -l) |
61 | 61 | FILENBPHO=$FILENB |
tools/scripts/CheckSecondPass.sh
... | ... | @@ -22,7 +22,7 @@ |
22 | 22 | if [ ! -e "$1" ] || [ -z "$1" ]; then return 1; fi |
23 | 23 | FILENBSEG=$(ls "$2/*.seg" 2> /dev/null | grep -f "$1" | wc -l) |
24 | 24 | FILENBRES=$(ls "$2/*.res" 2> /dev/null | grep -f "$1" | wc -l) |
25 | - FILENBTREIL=$(ls "$2/*.treil" 2 /dev/null | grep -f "$1" | wc -l) | |
25 | + FILENBTREIL=$(ls "$2/*.treil" 2> /dev/null | grep -f "$1" | wc -l) | |
26 | 26 | FILENB=$(cat "$1" | wc -l) |
27 | 27 | if [ $FILENB -ne $FILENBSEG ] || [ $FILENB -ne $FILENBRES ] || [ $FILENB -ne $FILENBTREIL ] ; then return 1;fi |
28 | 28 | fi |
tools/scripts/CheckThirdPass.sh
... | ... | @@ -20,9 +20,9 @@ |
20 | 20 | if [ $# -eq 2 ] |
21 | 21 | then |
22 | 22 | if [ ! -e "$1" ] || [ -z "$1" ]; then return 1; fi |
23 | - FILENBSEG=$(ls "$2/*.seg" | grep -f "$1" | wc -l) | |
24 | - FILENBRES=$(ls "$2/*.res" | grep -f "$1" | wc -l) | |
25 | - FILENBTREIL=$(ls "$2/*.treil" | grep -f "$1" | wc -l) | |
23 | + FILENBSEG=$(ls "$2/*.seg" 2>/dev/null | grep -f "$1" | wc -l) | |
24 | + FILENBRES=$(ls "$2/*.res" 2>/dev/null | grep -f "$1" | wc -l) | |
25 | + FILENBTREIL=$(ls "$2/*.treil" 2>/deV/null | grep -f "$1" | wc -l) | |
26 | 26 | FILENB=$(cat "$1" | wc -l) |
27 | 27 | if [ $FILENB -ne $FILENBSEG ] || [ $FILENB -ne $FILENBRES ] || [ $FILENB -ne $FILENBTREIL ] ; then return 1;fi |
28 | 28 | fi |