Originally Posted by ajdba
## This script Checks the log to be sure that all jobs
# that started actually finished. Each job should have a start
# and end status. If not, something happened during the execution
# we need to find out which start status doesn't have end status and display those line.
typeset -i numstart
typeset -i numend
numstart=`grep :START: /usr/local/ex/logs/exec_log | grep $logdt | wc -l`
numend=`grep :END: /usr/local/ex/logs/exec_log | grep $logdt | wc -l`
echo "Number of jobs started: $numstart"
echo "Number of jobs ended: $numend"
if [[ $numstart -ne $numend ]]; then
echo "Warning, check jobs for $logdt. Number started doesn't match number ended"
# Figure out how to match the start and end lines and display the ones that have the start line but no end line.
If you're stuck, tell us where you're stuck, and post what you've tried, and we will be happy to help you.
Otherwise do your own homework. Thanks.