"Print to FAX" via a Brother MFC printer

Articles: 

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.

My package 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

  1. licenced under the GPL v2 (like the Brother script)
  2. written entirely as a POSIX shell script
  3. 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),
  4. handles multiple documents (recognizing restrictions of the BrotherFax driver),
  5. properly handles commandline arguments (including file paths) that include embedded spaces,
  6. returns the exit code of the underlying lpr command, rather than a fixed 0 returncode, and
  7. has an accompanying manual page (brpcfax.1), licenced under the GNU FDL v1.3
Program usage:
brpcfax [−P <PRINTER>] −o fax-broadcast=<FILEPATH>|fax-number=<PHONE_NUMBER> [−o --brpcfax-debug=<LEVEL>] [−o . . .] [FILE . . .]

While I have alpha-tested this script to my satisfaction, it still needs "beta" testing before I release it as finished software. However, finding beta testers for this sort of software is hard; they need to have the right printer, and the right "print to fax" software already installed, and must be willing to trust that I haven't written something that would compromise their system's security or PII. The compressed files I provide here contain only text, readable with a text editor or other read-only text tool, and are open to manual review and desk-check as necessary.

I hope this package helps others, and welcome both trouble reports and suggestions for enhancement from anyone who trys it.

System Management: 
System Configuration: 
Development: