The command: enscript -P printername file.txt fails with the message: lp: Bad page-ranges values 0-0. It seems that the option '-P printer' is passed to the spooler command, which is 'lp'. the spooler command has a flag -P pages , and is confused A workaround is to change the spooler command in the configuration file /etc/enscript.cfg with: Spooler: lpr The lpr command has the option: -P printername