in reply to Re^4: His strangeness regex
in thread His strangeness regex

I'm sorry - but it's not the input.

Why don't you provide some input?

The line you marked out was the workaround. Still I don't got any idea why I had to do the dirty way instead of using the variabel.

Thanks, I knew that. I was demonstrating that the variable way was working.

I know the variabel to work normally - I'm used to it to see it running this very way. But I was perplexed that all of a sudden it didn't worked properly anymore.

I'm not saying I don't believe you, but prove it or it didn't happen :)

Replies are listed 'Best First'.
Re^6: His strangeness regex
by o_chfa (Acolyte) on Sep 04, 2009 at 10:32 UTC

    To make it short:

    $ > snmpwalk omServer1 .1.3.6.1.2.1.1.1 system.sysDescr.0 : DISPLAY STRING- (ascii): Sun SNMP Agent, Ultra-80 $ > snmpwalk omServer2 .1.3.6.1.2.1.1.1 system.sysDescr.0 : DISPLAY STRING- (ascii): IBM PowerPC CHRP Compute +r Machine Type: 0x0800004c Processor id: 00C9FC8A4C00 Base Operating System Runtime AIX version: 05.03.0000.0060 TCP/IP Client Support version: 05.03.0000.0063 $ > snmpwalk omServer3 .1.3.6.1.2.1.1.1 snmpwalk: No response arrived before timeout.

    That's the output to be processed

      $prefixSnmpWalk will match snmpwalk: No response arrived before timeout., just like it did in my program.

        fine. I expexted this to. But it didn't match. It matched only in the version:

        s/$prefixSysDescr|$prefixSnmpWalk// && do { $OutputLine = $_; last; };

        And that is the strangeness I'm speaking of