in reply to Re^3: Telnet extract output
in thread Telnet extract output

Nope it didn't match anything in the log output. I've set it as restrictive as i can. If i use the ^ and $ metacharacters then the situation just get worse because of command timeout. I think i have to figure it out, because the problem is clearly with the prompt variable.

Replies are listed 'Best First'.
Re^5: Telnet extract output
by tilly (Archbishop) on Aug 01, 2008 at 20:50 UTC
    Did you try changing the prompt? Did you try, as an experiment, to verify your theory by adding in sleeps?

    If none of those help then I can't be of much assistance. If I had the system in front of me it might be a different story, but I don't have MikrotikOS available to play with. I can't run your code. I don't know what exactly you're seeing. And I have not personally used Net::Telnet in this millennium.

      Sleep seems to be a good idea. Thanks for the tip! I'll try it. If it won't help i'll post the relevant part from the dump log. Edit: okay, i got it working, though i can't get the output from cmd() to a list, but i can use input_log than a filehandle on the the file to get what i need.