HylaFAX The world's
most advanced open source fax server
|
|
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
[hylafax-users] Fw: FaxDispatch Problems - SOLVED
The problem with the FaxDispatch file was in the formatting.
I made the mistake of creating the file in WordPad and then moving
to the linux server. I know, I know....that's what I get for using MS :)
Once I recreated using vi, it worked as it should.
David Elliott
----- Forwarded by David Elliott/D07/DCF on 03/20/2009 01:04 PM -----
David
Elliott/D07/DCF
To
03/19/2009 10:42 hylafax-users@xxxxxxxxxxx
PM cc
Subject
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*