log only one command when you input repeat commands