start a simple log file examination

This commit is contained in:
George Danchev 2011-07-04 16:05:24 +00:00
parent 258272cc93
commit 0dbbe73ae5

View File

@ -68,14 +68,26 @@ fi
E2=`date '+%s'`
let ES="${E2} - ${E1}"
printf "\n${SELF}: Total time elapsed ${ES} sec."
printf "\n${SELF}: stdout&stderr saved in ${CLOG}.\n"
# TODO: work out a less noisy diff'ing technique!
##### TODO: work out a less noisy diff'ing technique!
#if [ -f "${CLOG}".prev -a -f "${CLOG}" ]; then
# printf "\n${SELF}: Log diff follows:\n"
# diff -Naur "${CLOG}".prev "${CLOG}"
#fi
#####
printf "\n${SELF}: Std(out|err) logged in ${CLOG}."
printf "\n${SELF}: Log file examination follows:\n"
# severity classes of libdax_msgs.h in libburn and libisofs
# List of boring keywords:
# 'UPDATE' A pacifier message during long running operations.
# List of interesting keywords:
LIST_KWD="(NEVER|ABORT|FATAL|FAILURE|MISHAP|SORRY|WARNING|HINT|NOTE|DEBUG|ALL)"
if [ -f "${CLOG}" ]; then
grep -n -PT "${LIST_KWD}" "${CLOG}"
fi
fi
exit 0