in reply to Re: Telnet Error - Vasanth
in thread Telnet Error - Vasanth

yes i am executing many commands. For few commands it is working fine and for few it is not working fine. I observed that, if the command output has empty lines, it is failing. Can you help me on how to overcome this?

Replies are listed 'Best First'.
Re^3: Telnet Error
by hippo (Archbishop) on Feb 23, 2018 at 09:59 UTC
    if the command output has empty lines, it is failing

    What is the value of $fields[4] and/or $Eleprompt and/or $match?