Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions Utilities/Tools/jobutils.sh
Original file line number Diff line number Diff line change
Expand Up @@ -189,10 +189,12 @@ taskwrapper() {
-e \"terminate called without an active\" \
-e \"\*\*\* Error in\"" # <--- LIBC fatal error messages

grepcommand="grep -a -H ${pattern} $logfile ${JOBUTILS_JOB_SUPERVISEDFILES} >> encountered_exceptions_list 2>/dev/null"
exclude_pattern="-e \"To change the tolerance or the exception severity\""

grepcommand="grep -a -H ${pattern} $logfile ${JOBUTILS_JOB_SUPERVISEDFILES} | grep -a -v ${exclude_pattern} >> encountered_exceptions_list 2>/dev/null"
eval ${grepcommand}

grepcommand="grep -a -h --count ${pattern} $logfile ${JOBUTILS_JOB_SUPERVISEDFILES} 2>/dev/null"
grepcommand="cat encountered_exceptions_list 2>/dev/null | wc -l"
# using eval here since otherwise the pattern is translated to a
# a weirdly quoted stringlist
RC=$(eval ${grepcommand})
Expand Down