bb-services: regexes in expect string?

Aaron Zink AaronZink at eharmony.com
Wed Jul 2 21:33:08 CEST 2008


I have this defined in bb-services:

[smtp-transaction]
        send "helo hobbit.domain.com\r\nmail from: <test at domain.com>\r\nrcpt to: <test at anotherdomain.com>\r\nquit\r\n"
        expect "220-mx01.domain.com ESMTP\r\n220 ESMTP READY\r\n250 mx01.domain.com\r\n250 sender <test at domain.com> ok\r\n"
        port 25

and a host that uses it in bb-hosts.  This works great, except that it's tied to the host mx01.domain.com in the expect string.

Is it possible to use regexes in the expect string, such as expect "220-mx0[0|1].domain.com"?  So far my attempts have been unsuccessful and the man pages don't seem to indicate if this is possible.


Aaron Zink
Manager, Corporate IT
eHarmony.com
626.795.4814






More information about the Xymon mailing list