in reply to Tail a log, then match its string

One thing, you aren't using code tags for your code :)