Quoting jasonandmissy at cableone.net (jasonandmissy at cableone.net): > Does anybody have any exp. with the hylafax FaxDispatch script. I'm having > some problems and I was wondering if anybody could lend a hand. I've hacked > the faxrcvd script along with the FaxDispatch script to ftp the incoming fax > to a ftp server. It works fine as long as the incoming fax comes in on ttyS1. > The problem is everyfax comes in on ttyS1. My goal is if fax comes in from > lets say phone number 1-123-123-1234 it goes to ftp server 1. If the fax > comes from 1-123-123-1235 it goes to ftp server2. Anybody ever tried this and > had any luck with it? Even though you are using windows, I'll answer your question. This is coming off the cuff, so you might have to debug it, but you'll get the general idea. doftp() { REMOTE_HOST=$1 REMOTE_DIR=$2 FILENAME=$3 ncftpput $REMOTE_HOST $REMOTE_DIR $FILENAME } case "$SENDER" in *1*123*123*1234*) doftp "ftp1" "/path/to/file" $FILENAME;; *1*123*123*1235*) doftp "ftp2" "/path/to/file" $FILENAME;; esac -- Minneapolis St. Paul Twin Cities MN | Phone : (952)943-8700 http://www.mn-linux.org Minnesota Linux | Fax : (952)943-8500 Key fingerprint = 6C E9 51 4F D5 3E 4C 66 62 A9 10 E5 35 85 39 D9