Restart a command on STDIN activity