Execute a program periodically, showing output.