If this were my script I probably wouldn't do the runaround of log file parsing but rather put the email functionality into the logging subroutine/method of the script itself.
There are ten types of people: those that understand binary and those that don't.