i just looked over the script again, and no where does it actually invoke pflogsumm. are you sure you correctly copied the script? that open paren probably was to contain the cat, running the program, maybe some other gunk and then it would have all been piped to sendmail. can you go double check that something didn't eat your program?