Repeat the previous command line input, either until it is successful, or for a given amount of attempts.