script to print out last n seconds of patrol log