Wait until last line of input .log appears in output