Watches the output from a command at specified intervals