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] how to print on different printers
Hi Guys,
regarding matter in subject...
Problm solved upgrading from Hylafax 4.2 to 4.3
Rgds
Davide Sberna wrote:
Hi Guys.....
have someone of you some suggestion in order to solve this issue???
Here below my FaxDispatch
Thank you
-----------------quote----------------------------------------------------------------
## $Id: FaxDispatch,v 1.2 2003/05/04 23:49:41 darren Exp $
##
## Default FaxDispatch file - routes all inbound faxes to FaxMaster as
PDF
##
## Consult the faxrcvd(8C) man page for more information
##
SENDTO=hylafax@xxxxxxxxxxxxxx # by default email to
FaxMaster
FILETYPE=pdf; # in PDF format
##Dispatch to printers
PRINTER=default
case "$DEVICE" in
ttyS0) PRINTER=K-MARE;; # all faxes received on ttyS0
ttyS1) PRINTER=K2;; # all faxes received on ttyS1
esac
date >> /var/log/hylafax.log
echo " Device: $DEVICE | File: $FILE | Printer: $PRINTER" >>
/var/log/hylafax.log
tiff2ps -a1 $FILE | lpr -P $PRINTER >> /var/log/hylafax.log 2>&1
-----------------------------unquote-------------------------------------------------------------
Davide Sberna wrote:
Hi Aidan...
appending 2>&1 to the end of line as you suggestede nothing is
changed...
Log file is correct, it shows correct device, correct file and
printer, but faxes are still printed oin both printers and on K-MARE
(the one destined to print faxes received on ttyS0) 2 times!
Tried to rewrite my FaxDispatch, but nothing's happened.
Pls let me know if do I have to send you some log file (hylafax.log
only shows printer, filename and devices properly )
Thank you in advance / Davide
Aidan Van Dyk wrote:
* Davide Sberna <kingbu@xxxxxxxxx> [070102 11:58]:
Log file is growing properly showin the right device but I'm still
unable to direct file received, for example on ttyS1, only on
proper $PRINTER
and at the same time it's printed on the 1st printer 2 times.
Can you show us your log file?
How about changing that last line to be:
tiff2ps -a1 $FILE | lp -D $PRINTER >> /var/log/hylafax 2>&1
(adding the 2>&1 to the end)
a.
____________________ 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*