# LogChkr:  Checks the last lines of Spool:Logfile for phone call "FAILED",
# and reports it, if found, to the program that called LogChkr.

InLine=$(tail -2 uuspool:LOGFILE)
for avar in $InLine
do if [ "$avar"="FAILED" ] then echo "FAILED" ; break ; fi
done

