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


? Got something to say about this answer? Use the feedback form to send your comments to the HylaFAQ maintainers, or hit the question mark button to invoke the mailer.

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.


Sam Leffler / sam@engr.sgi.com.