HylaFAX The world's most advanced open source fax server

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: [hylafax-users] $DEVICE in FaxDispatch



Bodo Meissner wrote:
| case "$DEVICE" in
|  ttyS14) SENDTO=xxxxxx@xxxxxxxxxxxxxxxx;;
|  ttyS0)  SENDTO= xxxxxx@xxxxxxxxxxxxxxxx;;
|  *)      SENDTO= xxxxxx@xxxxxxxxxxxxxxxx;;
| esac

Here is a bug in your shell script. The following case statement will
overwrite any SENDTO value you have set above because it has a
default(*) case

I don't think so, bash at least doesn't fall through; * is for the default when you haven't matched anything before.


cheers,
rm


____________________ 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*




Project hosted by iFAX Solutions