in reply to Re: Expecting non-print chars from HP Procurve
in thread Expecting non-print chars from HP Procurve

Thanks for the info re: what was going on, but how can I remove them in the Expect method so I never see them at all?

  • Comment on Re^2: Expecting non-print chars from HP Procurve

Replies are listed 'Best First'.
Re^3: Expecting non-print chars from HP Procurve
by roboticus (Chancellor) on Nov 04, 2011 at 22:17 UTC

    sgrey:

    I don't use Expect, so take this with a grain of salt.

    If it's only happening during login, perhaps you could start logging *after* you've logged in. (If you need to debug logins, perhaps log the logins to one file, then switch to a new log file for normal operations. That way, you could ignore the sequence.)

    If it's happening all the time, perhaps you could either modify your log file viewer application to ignore the escape sequences, or even pipe them through a quick script that will squash them out for you.

    If there's an Expect method (such as using a filtered file handle or such) we'll have to wait for someone a bit more experienced/knowledgeable to chime in.

    ...roboticus

    When your only tool is a hammer, all problems look like your thumb.