HylaFAX The world's most advanced open source fax server

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

[hylafax-users] FaxDispatch Problems






Having problems with my faxdispatch. I have faxrcvd converting tiff to pdf
and
then trying to place the .tif.pdf file in multiple directories depending on
the
device it was received on.

My problem is that the pdfs remain in recvq and never move to the
subdirectories

Here's the snippet from my faxrcvd. It is executable.

FILENAME=`echo $FILE | $SED -e 's/\.tif//' -e 's/recvq\///'`

if [ -f $FILE ]
then
      $TIFF2PDF -o ${FILE}.pdf $FILE

fi

And here's my FaxDispatch. It is not executable. The subdirectories are
owned by the uucp user and uucp group.

## and/or by device
FOLDER="/var/spool/hylafax/recvq/"
FULLPATH="${FOLDER}${FILENAME}.tif.pdf"
case "$DEVICE" in
ttyn1a)       mv $FULLPATH /var/spool/hylafax/recvq/cpc/;;    # all faxes
received on ttyn1a
ttyn1b)       mv $FULLPATH /var/spool/hylafax/recvq/cpc/;;    # all faxes
received on ttyn1b
ttyn1c)       mv $FULLPATH /var/spool/hylafax/recvq/cpc/;;    # all faxes
received on ttyn1c
ttyn1d)       mv $FULLPATH /var/spool/hylafax/recvq/cpc/;;    # all faxes
received on ttyn1d
ttyn1e)       mv $FULLPATH /var/spool/hylafax/recvq/cpc/;;    # all faxes
received on ttyn1e
ttyn1f)       mv $FULLPATH /var/spool/hylafax/recvq/cpc/;;    # all faxes
received on ttyn1f
ttyn1g)       mv $FULLPATH /var/spool/hylafax/recvq/cpc/;;    # all faxes
received on ttyn1g
ttyn1h)       mv $FULLPATH /var/spool/hylafax/recvq/cpc/;;    # all faxes
received on ttyn1h
ttyn2a)       mv $FULLPATH /var/spool/hylafax/recvq/cpc/;;    # all faxes
received on ttyn2a
ttyn2e)   mv $FULLPATH /var/spool/hylafax/recvq/cmu/;;    # all faxes
received on ttyn2e
ttyn2f)   mv $FULLPATH /var/spool/hylafax/recvq/cmu/;;    # all faxes
received on ttyn2f
ttyn2g)   mv $FULLPATH /var/spool/hylafax/recvq/ap/;;    # all faxes
received on ttyn2g
ttyn2h)   mv $FULLPATH /var/spool/hylafax/recvq/bt/;;    # all faxes
received on ttyn2h
esac


David Elliott

NOTICE:  Florida has a broad public records law.  Most written
communications to or from state officials are public records that will be
disclosed to the public and the media upon request.   E-mail communications
may be subject to public disclosure.


____________________ 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