CUPS print to FAX for Brother MFC printers
From
Lew Pitcher@
[email protected] to
alt.os.linux, comp.os.linux.misc on Mon Apr 20 03:04:23 2026
From Newsgroup: alt.os.linux
Recently, I acquired a Brother MFC printer (Brother MFC-L8610CDW), and have installed the appropriate Brother "driver" packages to use it under CUPS.
One of the packages (the brmfcfaxdrv-2.0.2 "Fax" driver package) includes
a commandline user script ("brpcfax")to "print to fax", that seems to have
been written by someone with only a rudimentary concept of what users would
use it for. Written not in POSIX shell, but in bash, it queues documents to
a fixed-name print queue ("BRFAX") to be faxed by the printer attached to
this queue.
The script, while serviceable, seemed to me to be only just barely adequate
to it's task, and I have endeavoured to rewrite it so as to provide a few
more features and a fair bit more flexibility.
I have tested this rewrite on my own systems, to my own satisfaction. However, I'm not so vain as to think that what I've coded is universal. So, I'd like
to ask if anyone is interested in testing this script for me.
It replaces /only/ the /usr/bin/brpcfax script (symlinked to /opt/brother/fax/brmfcfax/command/brpcfax), and, in addition to being a
drop in replacement for brpcfax, is
a) written entirely as a POSIX shell script
b) written to allow user selection of the fax printer queue
(where the sysadmin has configured CUPS or LPR(NG) to use a different
queue name for the Brother FAX driver),
c) handles multiple documents (recognizing restrictions of the Brother
Fax driver),
d) properly handles commandline arguments (including file paths) that
include embedded spaces, and
e) returns the exit code of the underlying lpr command, rather than
a fixed 0 returncode
If there's interest, please respond, and I will send (or post) the
man page, the script, and the GPL v2 licence that goes with it.
Thanks in advance
--
Lew Pitcher
"In Skills We Trust"
Not LLM output - I'm just like this.
--- Synchronet 3.21f-Linux NewsLink 1.2