a script to print out the last n seconds of patrol run