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] FaxDispatch...



Okay.. maybe someone can enlighthen me... 

I looked over the faxrcvd script and the only reference i see is this:
if [ -f etc/FaxDispatch ]; then
    . etc/FaxDispatch           # NB: FaxDispatch sets SENDTO
fi
(which i presume checks if the file exists and if it exists includes it into 
the script).

this is what my FaxDispatch file looks like: 
case "$DEVICE" in
/dev/ttyACM0)   SENDTO=clfaxes;;  # all faxes received on ttyACM0
/dev/ttyACM1)   FILETYPE=pdf; SENDTO=clfaxes;;  # all faxes received on 
ttyACM1
/dev/ttyACM2)   mv $FILENAME /var/spool/fax/custom/purchasing/;;
ttyACM2)        mv $FILENAME /var/spool/fax/custom/purchasing/;;
esac
RETURNFILETYPE=pdf

as far as I can tell none of the lines are working.. but lines refering to 
ttyACM2 are the ones i'd like to get working.  

owner of custom and purchasing is uucp same as recvq and same permissions.

Sam


On Tuesday 16 August 2005 03:45 pm, Lee Howard wrote:
> spamuser2@xxxxxxxxxxxx wrote:
> >This might be a stupid question.. but is FaxDispatch a shell script?  and
> > does most bash logic work in it as well...
> >
> >ie.  does it need #!/bin/bash on top and the chmod +x permission... or
> > does hylafax execute it internally?
>
> FaxDispatched is sourced from a shell script, faxrcvd, and it does not
> need the shebang because of that or need to have execute permissions
> (it's merely read and included).
>
> Lee.

____________________ 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