Section 3 : Running a Server

Q313: How do I get faxd to print everytime I receive a facsimile?


? Got something to say about this answer? Hit the question mark to invoke the mailer and send your comments to the HylaFAQ maintainers.

Q.
How do I get faxd to print everytime I receive a facsimile?

I am wondering how to get fax to printed everytime I receive one. Man pages say that changing the bin/faxrcvd script will do it. As it is now, faxes are being saved in TIFF format (I think thats the default)

A.
TIFF/Class F is the format in which HylaFAX stores received facsimile. There is documentation on the faxrcvd script invoked by the fax server for each received facsimile. To print each received fax just modify the script according to your local needs. For example, you might use fax2ps (in the HylaFAX distribution) piped to ghostscript with the Laserjet driver.
/usr/local/bin/fax2ps $1 | gs -q -sDEVICE=ljet3 -dNOPAUSE -sOutputFile=- | lp

Another useful program to use when printing TIFF images is the tiff2ps program that is included in the TIFF software distribution.

If you are using cups-printing system, you may need to use:

lpr $1 -o natural-scaling=95 -o media=A4


 Back to FAQ Index FAQ Index  Next question in List Q314: No answer from remote (extending the connect time)?
faq@hylafax.org. Last updated $Date: 2002/07/11 18:42:33 $.