![]() |
On Thursday 30 November 2006 15:23, Davide Sberna wrote: > Hi, > > I tried configuration that you suggested... > Nothing is changed since hylafax server is printing only on system > default printer!!!!! > I really don't understand why!!!!! > Both printers are well configured since I'mable to print other docs > without troubles. > > Could you pls provide other possible solution? > Thanks in advance for yr kind help > Rgds > Davide First of all, manually check that you really can print to each printer; $ lpr -P printer-A somefile.ps $ lpr -P printer-B somefile.ps (if you have no convenient PostScript file lying around then use $ enscript -p somefile.ps /etc/passwd to create one) If not, fix that before proceeding. Next, modify your FaxDispatch to create a log of what it's been doing; PRINTER=default case $DEVICE ttyS0) PRINTER=printer-A;; ttyS1) PRINTER=printer-B;; esac # log what we're doing to a temporary file date >> /tmp/stuff echo "Device was $DEVICE -- printing $FILE to $PRINTER" >> /tmp/stuff # end of AJS's mods tiff2ps -a $FILE | lpr -P $PRINTER Make sure /tmp/stuff exists and is writable; $ echo -n "" > /tmp/stuff $ chmod 666 /tmp/stuff Then, after receiving a few faxes, examine /tmp/stuff and make sure it says what you were expecting. If the file hasn't grown at all, that means your FaxDispatch isn't even being called. The most likely explanation for this is you've simply saved it in the wrong place. If you used your distro's pre-compiled Hylafax package rather than compiling from source, they may have "helpfully" moved it for you (GNU folks generally prefer every package to place its config files somewhere under /etc; BSD folks seem to prefer every package to place its config files somewhere only it knows about. Each method has its merits, cf. big vs little endianness). For instance, Debian and Ubuntu use /etc/hylafax/FaxDispatch. If you're lucky, there will be a sample file, probably containing just comments, already in the right place. -- AJS ____________________ 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*