log tailing and email program in ruby