def ping_pong(connection, command, strexp, timeout=10):
        '''
        Enter a command and wait for something to happen (enter + expect
        combined)

        @param connection: connection to the host
        @type connection: L{Connection}

        @param command: command to execute
        @type command: str

        @param strexp: string to convert to expression (.*string.*)
        @type strexp: str

        @param timeout: timeout for performing expect operation
        @type  timeout: int

        @return: True if succeeded
        @rtype: bool

        @raises ExpectFailed
        '''
        Expect.enter(connection, command)
        return Expect.expect(connection, strexp, timeout)