![]() |
This regex will match ttyUSB0000, ttyUSB20, and ttyUSB522343234.If we have: ModemGroup: "outnow:ttyUSB[0,2-5]" Works, but doesn't send out on ttyUSB1 which is expected.
If we have:Which is why when you include the "1" you match ttyUSB10, ttyUSB10, ttyUSB11, and ttyUSB12. If this is matching ttyUSB9 then I would guess there is a bug in hylafax. To match ttyUSB1 and not ttyUSB10 you need to put "outnow:ttyUSB[0-5]$". The dollar sign means thats the end of the string.
ModemGroup: "outnow:ttyUSB[0,1,2-5]"
It sends out on ALL lines...it seems like it is matching both the first and
the second number.
And thats not a regex. Thats file globbing in you sheel. Regex will match substrings, while file globbing only matches complete strings. If it was a regex you'd also match config.ttyUSB02342, config.ttyUSB12, config.ttyUSB8232423, etc.I have checked to see if regex is the problem by doing the following: [root@roadrunner etc]# ls config.ttyUSB[0-8] config.ttyUSB0 config.ttyUSB2 config.ttyUSB4 config.ttyUSB6 config.ttyUSB8 config.ttyUSB1 config.ttyUSB3 config.ttyUSB5 config.ttyUSB7
And this gives me the result I need...
HylaFAX scheduler on roadrunner.ext.maynegroup.com: Running Modem ttyUSB1 (Outgoing1): Running and idle Modem ttyUSB2 (Outgoing2): Running and idle Modem ttyUSB3 (Outgoing3): Running and idle Modem ttyUSB4 (Outgoing4): Running and idle Modem ttyUSB5 (Outgoing5): Waiting for modem to come ready Modem ttyUSB0 (Outgoing0): Running and idle Modem ttyUSB6 (Incoming0): Running and idle Modem ttyUSB7 (Incoming1): Running and idle Modem ttyUSB8 (Incoming2): Running and idle Modem ttyUSB9 (Incoming3): Running and idle Modem ttyUSB10 (Incoming4): Running and idle Modem ttyUSB11 (Incoming5): Running and idle Modem ttyUSB12 (Incoming6): Running and idleI can't test modemgroup regex's here so I can't add more than that explaination.
Any ideas?
-- Steven Kurylo
____________________ HylaFAX(tm) Users Mailing List _______________________ To subscribe/unsubscribe, click http://lists.hylafax.org/cgi-bin/lsg2.cgi On UNIX: mail -s unsubscribe hylafax-users-request@xxxxxxxxxxx < /dev/null *To learn about commercial HylaFAX(tm) support, mail sales@xxxxxxxxx*